Closed b4rtt closed 2 months ago
I had the same issue. Downgrading XCode to version 15.2 fixed this issue. You can download older versions of XCode here: https://developer.apple.com/xcode/resources/
Hello all! I'm having the same issue right now as well. Here I describe all the steps, example app and versions too. https://github.com/NativeScript/ios/issues/241 I think this issue is top 1 priority, as it totally blocks all NS ecosystem on iOS.
Does this happen with the 8.6.4-next.2024-02-21-7992943232 runtime?
Update: I just built the app with Xcode 15.2 following the @milleniumfrog 's hint and it did work at my iPhone 12 iOS 17.4. The app is running well, so lets see if it works at AppStore review, I keep you posted. Now I'm going to update Xcode again and test the release that you said @rigor789.
@rigor789 I just tested this new runtime: 8.6.4-next.2024-02-21-7992943232` and it did not work. The error persists under Xcode 15.3.0 even updating the runtime. Looks like the native bridge is crazy, some objc classes are not accessible anymore and it is very random, lots of classes still work but someones are totally unaccessible.
Thank you @gabrielbiga for testing it out - looks like sticking with Xcode 15.2 is the way to go for now.
For anyone running into this, highly recommend Xcodes App to manage Xcode versions: https://github.com/XcodesOrg/XcodesApp
(Or if you use AppStore, disable automatic updates).
We'll be looking further into this, but in the meantime the above should get you going.
this PR should fix it (hopefully) https://github.com/NativeScript/ios/pull/242
Apparently the iPhone SDK 17.4 can't detect that it's an iPhone anymore, so some variables seem to be missing. We should release a new version soon with this fix, but in the meantime you can test it out yourself and give some feedback to see if it works:
unzip npm_release.zip
). If you unzip through finder it'll unzip twice...Fixed on @nativescript/ios “next”, which you can use right now, and will be part of 8.7 this week.
Any idea when this will be in the standard release?
@ray007 try out 8.6.4
Seems to work, thank you.
Guess I forgot the ns clean
yesterday...
@triniwiz is right, this PR https://github.com/NativeScript/ios/pull/242 solves the compilation problem that is happening with XCode 15.3+, you don't need to downgrade the version, just change the version of "@nativescript/ios"
to "8.6.4"
,
Issue Description
After installing the project ns create example-app --ng and after updating the XCode SDK to version 17.4, the application cannot run on a real device. The app installs but after launching the app a black screen appears and after a while the app crashes. Interestingly, everything works properly in the simulator.
The app does not work even after building it for the AppStore. The app builds fine, I upload it to the Appstore and after installing it via Testflight, the black screen appears again and the app crashes after a while.
Just yesterday I had the SDK 17.2 installed in XCode and everything worked on it.
I first detected the whole problem on my production app, which I've had in the Appstore for a few years now, and now I can't release an update.
So I tried to create a completely clean project using ns create example-app --ng.
Reproduction
ns create example-app --ng
ns run ios (have connected iPhone 13 pro)
Relevant log output (if applicable)
Here is the error code that appears in the console after a while: (running ns run ios - with connected iphone 13 PRO):
Dependencies
Please accept these terms