chore: 初始化仓库(零源工具箱 0.1.0 基线)
- Go 主进程 cmd/zerorigin(托盘常驻 + 触发器/规则/动作引擎) - Wails v3 设置进程 cmd/settings(独立 module) - 监督进程 cmd/watchdog(-supervise 异常重启) - 构建脚本 build.bat / NSIS 安装包 deploy/、便携版 portable/ - 架构与 MVP 计划文档 docs/、阶段 0-4 验收记录 deploy/acceptance-0-4.md
This commit is contained in:
commit
0a1c1e82ea
188 files changed
+19926
No files matched your search
@@ -0,0 +1,22 @@
|
||||
//go:build ios
|
||||
// Minimal bootstrap: delegate comes from Go archive (WailsAppDelegate)
|
||||
#import <UIKit/UIKit.h>
|
||||
#include <stdio.h>
|
||||
|
||||
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);
|
||||
|
||||
// Call UIApplicationMain IMMEDIATELY and start NOTHING else here. Do not
|
||||
// start the Go runtime yet: starting it concurrently with UIApplicationMain
|
||||
// intermittently corrupts the FrontBoard launch handshake on a physical
|
||||
// device, so the app delegate's didFinishLaunchingWithOptions never fires
|
||||
// (blank cold launch / 0x8BADF00D). Instead, the WailsAppDelegate (provided
|
||||
// by the Go archive) starts the Go runtime itself from
|
||||
// didFinishLaunchingWithOptions — i.e. only AFTER UIKit has delivered the
|
||||
// launch — so the runtime never races the launch handshake.
|
||||
return UIApplicationMain(argc, argv, nil, @"WailsAppDelegate");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user