ide/build/ios/main.m
Snider bfd5c59cac
Some checks failed
Security Scan / security (push) Successful in 8s
Test / test (push) Failing after 1m41s
feat: update Wails to alpha 74, add iOS/Android/Docker build support
- Updated wails3 CLI to v3.0.0-alpha.74
- Added build/ios/, build/android/, build/docker/ from new template
- Updated all platform Taskfiles (darwin, linux, windows)
- Fixed Angular versions to ~20.3.16
- Root Taskfile with platform-aware build/package/run
- Binary compiles and runs — system tray appears on macOS

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-14 13:10:55 +00:00

23 lines
No EOL
834 B
Objective-C

//go:build ios
// Minimal bootstrap: delegate comes from Go archive (WailsAppDelegate)
#import <UIKit/UIKit.h>
#include <stdio.h>
// External Go initialization function from the c-archive (declare before use)
extern void WailsIOSMain();
int main(int argc, char * argv[]) {
@autoreleasepool {
// Disable buffering so stdout/stderr from Go log.Printf flush immediately
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
// Start Go runtime on a background queue to avoid blocking main thread/UI
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
WailsIOSMain();
});
// Run UIApplicationMain using WailsAppDelegate provided by the Go archive
return UIApplicationMain(argc, argv, nil, @"WailsAppDelegate");
}
}