diff --git a/app/darwin_ios.m b/app/darwin_ios.m index 08bb72f..3d4f2a3 100644 --- a/app/darwin_ios.m +++ b/app/darwin_ios.m @@ -135,8 +135,9 @@ - (void)touchesCanceled:(NSSet*)touches withEvent:(UIEvent*)event { @end void runApp(void) { + char * argv[] = {}; @autoreleasepool { - UIApplicationMain(0, nil, nil, NSStringFromClass([GoAppAppDelegate class])); + UIApplicationMain(0, argv, nil, NSStringFromClass([GoAppAppDelegate class])); } } diff --git a/cmd/gomobile/build_iosapp.go b/cmd/gomobile/build_iosapp.go index 9cc22ab..79b2c3f 100644 --- a/cmd/gomobile/build_iosapp.go +++ b/cmd/gomobile/build_iosapp.go @@ -426,6 +426,7 @@ const projPbxproj = `// !$*UTF8*$! SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; + ENABLE_BITCODE = NO; }; name = Release; }; diff --git a/cmd/gomobile/env.go b/cmd/gomobile/env.go index cb42d1c..a707965 100644 --- a/cmd/gomobile/env.go +++ b/cmd/gomobile/env.go @@ -140,7 +140,6 @@ func envInit() (err error) { default: panic(fmt.Errorf("unknown GOARCH: %q", arch)) } - cflags += " -fembed-bitcode" if err != nil { return err }