NativeScript: Upgraded our OS to 14.2 and the enterprise app starts crashing, couldn't open it, install via MDM
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 8.2.0
- Cross-platform modules:
- Android Runtime:
- iOS Runtime:6.5.3
- XCode Version:12.2
- Plugin(s):
Describe the bug The problem is similar to this: https://developer.apple.com/forums/thread/666399, OS: iOS 14.2, iOS 14.3 Beta 1, iOS 14.3 Beta 2 Hardware: Any arm64e cpu device (ex: iPad Pro 11" 1st/2nd gen, iPad Pro 12.9" 3rd/4th gen, iPad 8th gen, iPad Air 3rd/4th gen, iPhone 11, etc) Deployment: Deployed via any MDM and AppStore, install via MDM -> crash,install via AppStore -> works fine, Ad-hoc .ipa deployment works fine even via MDM, so via -> AppStore -> MDM -> crash
To Reproduce
Expected behavior
Sample project
Additional context
Does anyone have a similar problem? This is currently the same problem with Xamarin Apps.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 17 (5 by maintainers)
Just a note there are a couple of comments in the Xamarin iOS 14.2 thread which state that is issue is fixed in 14.4 beta 2.
https://github.com/xamarin/xamarin-macios/issues/10086#issuecomment-759719642 https://github.com/xamarin/xamarin-macios/issues/10086#issuecomment-760214497
I updated one of our dev iPads to 14.4 beta 2 and deployed via MDM and the app worked! Now we just have to wait for iOS 14.4 to be released, hopefully soon!
@JamesRoome & @xuzhanqian - To set your expectation correctly, as much as we love to fix every issue reported – unless it is something really simple that the logs point to – this is very much likely not a issue that we will fix anytime soon as it will just consume too much time for the very tiny number of actual developers impacted. This issue is technically a “self-inflicted” corner case that doesn’t affect the community at large.
Since this is a 100% open source project with currently a very very small amount of funding, our limited resources are so much better served dealing with the issues that affect the majority of the community rather than any corner cases that have such a small impact to the entire eco-system. We will gratefully accept any PR’s to fix this…
Ways forward:
As such I’m marking this issue as a backlog issue… As we agree it is a real issue, and we would love to fix it, but it is not one we have the resources to fix at this point at time…
We are also seeing this crash issue. App works just fine on iOS 14.1 and below (deployed using MDM). It crashes with iOS 14.2 when deployed using an MDM tool (works fine with normal deployment).
Our MDM provider sent us this link for troubleshooting: https://developer.apple.com/forums/thread/666399
The Xamarin team have a fix, but it is very Xamarin specific (https://github.com/xamarin/xamarin-macios/issues/10086#issuecomment-738237870). Looking for a NativeScript fix.
I’ll be getting my development tablet setup with an MDM today, so will hopefully be able to followup with the vendor.js info.
Can confirm this for iPhone SE running 14.4 Beta 2 deploying via MDM worked fine.
@tmedora - You can send a email to us at support@nstudio.io it will go into our support queue and one of us at nStudio will respond. 😉
Not N related. Xamarin is facing the same issue https://github.com/xamarin/xamarin-macios/issues/10086. Apparently Apple is about to release a fix https://github.com/xamarin/xamarin-macios/issues/10086#issuecomment-743395597
After the N7 demo was approved by Apple, it was installed on 14.2 devices through MDM, but it still crashed. This is the latest Crashlog, it seems that the problem still exists
notify_get_state check indicated test daemon not ready.Is it possible to solve this problem with NativeScript Framwork? Or is it apple’s problem?
at run(file:///app/vendor.js:92762:26)
This is code at vendor.js:92762. This method leads to Crash, but it does nothing.
if (!iosApp.nativeApp) { UIApplicationMain(0, null, null, iosApp && iosApp.delegate ? NSStringFromClass(iosApp.delegate) : NSStringFromClass(Responder)); }