I'm having build issues with Mobile SDK 45.0

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.

Parents Reply Children
  • I think we are talking about these lines

    // custom/magic-action.js
    const customization = require('%app.core%/customization');
    const dialog = require('%app.core%/dialog');
    customization.registerRecordAction({


    As I've mentioned before in SDK 45 we've migrated from using outdated require/exports modules syntax to newer ES6 modules (import/export). Could you try using 'import customization from '%app.core%/customization'' instead of require and see if it works?

    It seems that example in documentation is outdated since SDK 45