We have an app that has been working fine with Mobile SDK. Today I attempted to upgrade to Mobile SDK 45.0 and the application no longer runs.
Compile Time Errors
Runtime Errors
We have an app that has been working fine with Mobile SDK. Today I attempted to upgrade to Mobile SDK 45.0 and the application no longer runs.
Compile Time Errors
Runtime Errors
2022-06-01 09:17:57.902874-0700 SugarMobileEnhanced[83272:10530445] Apache Cordova native platform version 6.2.0 is starting. 2022-06-01 09:17:57.903036-0700 SugarMobileEnhanced[83272:10530445] Multi-tasking -> Device: YES, App: YES 2022-06-01 09:17:57.906566-0700 SugarMobileEnhanced[83272:10530445] Apache Cordova native platform version 6.2.0 is starting. 2022-06-01 09:17:57.906724-0700 SugarMobileEnhanced[83272:10530445] Multi-tasking -> Device: YES, App: YES 2022-06-01 09:17:58.053302-0700 SugarMobileEnhanced[83272:10530445] [ViewportSizing] maximumViewportInset cannot be larger than frame 2022-06-01 09:17:58.053465-0700 SugarMobileEnhanced[83272:10530445] [ViewportSizing] minimumViewportInset cannot be larger than frame 2022-06-01 09:17:58.445448-0700 SugarMobileEnhanced[83272:10530445] CDVWKWebViewEngine: trying to inject XHR polyfill 2022-06-01 09:17:58.445938-0700 SugarMobileEnhanced[83272:10530445] The preference key "AutoInjectCordova" is not defined and will default to "FALSE" 2022-06-01 09:17:58.446054-0700 SugarMobileEnhanced[83272:10530445] The preference key "AudioCanMix" is not defined and will default to "FALSE" 2022-06-01 09:17:58.447659-0700 SugarMobileEnhanced[83272:10530445] The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE" 2022-06-01 09:17:58.450975-0700 SugarMobileEnhanced[83272:10530445] The preference key "KeyboardDisplayRequiresUserAction" is not defined and will default to "TRUE" 2022-06-01 09:17:58.451152-0700 SugarMobileEnhanced[83272:10530445] The preference key "AllowLinkPreview" is not defined and will default to "FALSE" 2022-06-01 09:17:58.451280-0700 SugarMobileEnhanced[83272:10530445] The preference key "ScrollEnabled" is not defined and will default to "FALSE" 2022-06-01 09:17:58.451403-0700 SugarMobileEnhanced[83272:10530445] The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE" 2022-06-01 09:17:58.451511-0700 SugarMobileEnhanced[83272:10530445] CDVWKWebViewEngine will reload WKWebView if required on resume 2022-06-01 09:17:58.455075-0700 SugarMobileEnhanced[83272:10530445] Using Ionic WKWebView 2022-06-01 09:17:58.455534-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][console] 0.065923ms 2022-06-01 09:17:58.455729-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][handleopenurl] 0.054955ms 2022-06-01 09:17:58.456859-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][intentandnavigationfilter] 1.019955ms 2022-06-01 09:17:58.457066-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][gesturehandler] 0.059009ms 2022-06-01 09:17:58.458657-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][statusbar] 1.461029ms 2022-06-01 09:17:58.459861-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][file] 1.053929ms 2022-06-01 09:17:58.460157-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][keyboard] 0.164986ms 2022-06-01 09:17:58.460299-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][httpauthorization] 0.025988ms 2022-06-01 09:17:58.460505-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][pushnotification] 0.087023ms 2022-06-01 09:17:58.463228-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][splashscreen] 2.596974ms 2022-06-01 09:17:58.463384-0700 SugarMobileEnhanced[83272:10530445] [CDVTimer][TotalPluginStartup] 7.968068ms 2022-06-01 09:17:58.694411-0700 SugarMobileEnhanced[83272:10531357] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}> 2022-06-01 09:17:58.694607-0700 SugarMobileEnhanced[83272:10531357] [ProcessSuspension] 0x117004180 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=83329, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit} 2022-06-01 09:17:58.701693-0700 SugarMobileEnhanced[83272:10531357] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}> 2022-06-01 09:17:58.704078-0700 SugarMobileEnhanced[83272:10531357] [ProcessSuspension] 0x117004d80 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=83329, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist} 2022-06-01 09:18:28.584073-0700 SugarMobileEnhanced[83272:10530445] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service 2022-06-01 09:18:44.698179-0700 SugarMobileEnhanced[83272:10530445] [HardwareKeyboard] -[UIApplication getKeyboardDevicePropertiesForSenderID:shouldUpdate:usingSyntheticEvent:], failed to fetch device property for senderID (778835616971358211) use primary keyboard info instead. 2022-06-01 09:18:44.699799-0700 SugarMobileEnhanced[83272:10530445] [HardwareKeyboard] -[UIApplication getKeyboardDevicePropertiesForSenderID:shouldUpdate:usingSyntheticEvent:], failed to fetch device property for senderID (778835616971358211) use primary keyboard info instead.
Could you try to run your custom app in debug mode in your desktop browser to see if you get any JavaScript errors there?
Eugene Bychkov; I'm using the simulator. I have been rebuilding the app with the different SDKs for a couple of years. Today is the 1st time that it won't open in the simulator. Can you provide instructions on how to run an iOS app in the browser?
My understanding is that you have some custom Javascript code that implements your custom functionality. In SDK 45 we've migrated from using outdated require/exports modules syntax to newer ES6 modules (import/export). Your old code is most likely now incompatible and needs to be updated to using newer import/export paradigm. The good news is that it is not difficult to do
Information about how to run and debug in Chrome (and other useful stuff) can be found here:
Best regards, Eugene
My understanding is that you have some custom Javascript code that implements your custom functionality. In SDK 45 we've migrated from using outdated require/exports modules syntax to newer ES6 modules (import/export). Your old code is most likely now incompatible and needs to be updated to using newer import/export paradigm. The good news is that it is not difficult to do
Information about how to run and debug in Chrome (and other useful stuff) can be found here:
Best regards, Eugene