akofman / cordova-plugin-add-swift-support

:hammer: Swiftify your Cordova app !
MIT License
116 stars 107 forks source link

add SWIFT_COMPILATION_MODE = wholemodule #81

Open amcalgates opened 5 months ago

amcalgates commented 5 months ago

This fixes a bug where TestFlight/App Store apps were crashing on iOS 12 when compiled with Xcode 15+.

To reproduce:

Then to reproduce:

OR, to skip waiting on TestFlight/App Store:

For the aid of future users Googling, this was the only error I could glean, which I saw in the system console. There are no stack traces because the app does not successfully launch on iOS 12:

Attempt to add an app with insufficient id, info {
    BKSApplicationStateAppIsFrontmost = 1;
    BKSApplicationStateExtensionKey = 0;
    SBApplicationStateDisplayIDKey = "com.dinnerwire.SmartKDS";
    SBApplicationStateKey = 8;
    SBApplicationStateProcessIDKey = 472;
    SBApplicationStateRunningReasonsKey =     (
                {
            SBApplicationStateRunningReasonAssertionIdentifierKey = UIApplicationLaunch;
            SBApplicationStateRunningReasonAssertionReasonKey = 10000;
        }
    );
    SBMostElevatedStateForProcessID = 8;
}

And:

SyscallError: setpriority(PRIO_DARWIN_ROLE, 787, 3): No such process

https://forum.ionicframework.com/t/ios-12-app-crashes-on-opening-and-closes-quickly-libswift-concurrency-dylib/230206