I was running an older version of Construct 2 from before the Cordova export would export the entire Cordova project prepared for the developer.
I updated and decided to try the new export feature. It breaks for my project.
To verify whether it was my project or Construct. I created a project with just a single sprite, no events. Default config on the rest of the project and did a Cordova export. The export also fails to load or show any visuals.
It looks like "Error in Success callbackId: File32975700 : ReferenceError: Can't find variable: jQuery" is the first error which starts the project to breakdown?
The errors are below:
2020-07-03 19:22:15.531436+0200 Test[582:16274] Apache Cordova native platform version 5.1.1 is starting.
2020-07-03 19:22:15.531547+0200 Test[582:16274] Multi-tasking -> Device: YES, App: YES
2020-07-03 19:22:15.542069+0200 Test[582:16274]
Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/documentation/data-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file
2020-07-03 19:22:15.793089+0200 Test[582:16274] WF: === Starting WebFilter logging for process Test
2020-07-03 19:22:15.793204+0200 Test[582:16274] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2020-07-03 19:22:15.793285+0200 Test[582:16274] WF: _WebFilterIsActive returning: NO
2020-07-03 19:22:15.827514+0200 Test[582:16274] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2020-07-03 19:22:15.827587+0200 Test[582:16274] WF: _WebFilterIsActive returning: NO
2020-07-03 19:22:15.829434+0200 Test[582:16274] CDVWKWebViewEngine will reload WKWebView if required on resume
2020-07-03 19:22:15.829532+0200 Test[582:16274] Using WKWebView
2020-07-03 19:22:15.829830+0200 Test[582:16274] [CDVTimer][console] 0.069022ms
2020-07-03 19:22:15.830004+0200 Test[582:16274] [CDVTimer][handleopenurl] 0.084043ms
2020-07-03 19:22:15.830701+0200 Test[582:16274] [CDVTimer][intentandnavigationfilter] 0.627995ms
2020-07-03 19:22:15.830782+0200 Test[582:16274] [CDVTimer][gesturehandler] 0.032902ms
2020-07-03 19:22:15.833486+0200 Test[582:16274] [CDVTimer][file] 2.651095ms
2020-07-03 19:22:15.834565+0200 Test[582:16274] [CDVTimer][statusbar] 1.007080ms
2020-07-03 19:22:15.834625+0200 Test[582:16274] [CDVTimer][TotalPluginStartup] 4.920006ms
2020-07-03 19:22:15.997162+0200 Test[582:16274] Error in Success callbackId: File1044093589 : ReferenceError: Can't find variable: jQuery
2020-07-03 19:22:15.997256+0200 Test[582:16274] file:///private/var/containers/Bundle/Application/10120D53-9F87-454B-8C9F-3405E19F5EB5/Test.app/www/c2runtime.js:16853:10
file:///private/var/containers/Bundle/Application/10120D53-9F87-454B-8C9F-3405E19F5EB5/Test.app/www/c2runtime.js:4461:22
file:///private/var/containers/Bundle/Application/10120D53-9F87-454B-8C9F-3405E19F5EB5/Test.app/www/c2runtime.js:3618:21
file:///private/var/containers/Bundle/Application/10120D53-9F87-454B-8C9F-3405E19F5EB5/Test.app/www/c2runtime.js:7692:20
readSuccessCallback@file:///private/var/containers/Bundle/Application/10120D53-9F87-454B-8C9F-3405E19F5EB5/Test.app/www/plugins/cordova-plugin-file/www/FileReader.js:160:24
readSuccessCallback@[native code]
callbackFromNative@file:///private/var/containers/Bundle/Application/10120D53-9F87-454B-8C9F-3405E19F5EB5/Test.app/www/cordova.js:295:63
file:///private/var/containers/Bundle/Application/10120D53-9F87-454B-8C9F-3405E19F5EB5/Test.app/www/plugins/cordova-plugin-wkwebview-engine/src/www/ios/ios-wkwebview-exec.js:129:35
promiseReactionJob@[native code]