NativeScript Playground App on iOS 14.0 (18A373) crash directly after start - nativescript

I have installed the NativeScript Playground App on my iPhone XR with iOS 14.0 (18A373) and the app directly crash after start. So I can not scan the QR code from play.nativescript.com

This seems to be a common problem with running Nativescript apps on iPhones with iOS 14.
My app, which has been fine for the past year, suddenly failed and I'm now trying to find a solution as rebuilding with XCode 12 also fails...
https://github.com/NativeScript/NativeScript/issues/8867
https://github.com/NativeScript/NativeScript/issues/8916
Follow up:
I got it working in Xcode 12 though not entirely clear how... basically I did this:
installed "tns-ios": "6.5.2"
tns platform remove ios, tns platform add ios
tns build ios --release
Went to XCode and selected Product > Archive (which rebuilds it)
This build succeeds and when deployed to the App Store it worked in FlightTest.

This fix is to update tns-ios to 6.5.2 but you also have to make a change to your Podfile and build.xcconfig. I wrote a tutorial on the steps I took to fix the issue: https://timleland.com/how-to-fix-nativescript-issue-with-ios14-and-xcode-12/

Playground and Preview Updates are now available with iOS 14 compliance:
https://twitter.com/NativeScript/status/1325994280003891200
NativeScript Playground v1.9.0
NativeScript Preview 1.31.0

Related

NativeScript : IOS app crashed on splash screen

I am using NativeScript 6.0.2, When I test app in simulator and real device its work fine. Then i archive project and uploaded ipa for testFlight successfully, But when i install app in device from testFlight its crashed on splash screen.
tns info
✔ Getting NativeScript components versions information...
✔ Component nativescript has 6.0.2 version and is up to date.
✔ Component tns-core-modules has 6.0.3 version and is up to date.
✔ Component tns-android has 6.1.0-2019-07-23-185153-03 version and is up to date.
✔ Component tns-ios has 6.0.1 version and is up to date.
Please help to resolve this issue.
Here is the device log
I found some red path into Build Phases section(XCode), Is there any issues with them?
Here is the image of Build Phases
Don't know if it will help but here is a tip, this is what I usually do when similar issues happen:
Connect the device (iPhone) to your Mac.
Open XCode and go to "Window > Devices & Simulators".
Your device should be visible in the left pane under "Connected".
Select the device, then on the right side you can either:
View Device Logs (check latest logs, perhaps you find some error here)
Open Console (open the console, then start the app, see what happens)
Hope it helps
Finally, After some investigation, I tried to prepare app for Ios using command tns prepare ios --release and then upload archive from XCode. Its worked for me.

I use xcode8 archive the App run well on iOS 11,But xcode9 GM archive the App show more different

I use xcode8 archive the App run well on iOS 11,But xcode9 GM archive the App show more different.
For example, UINavigationBar show different but the code same!
Who can tell me why and how fix it?
thx
When you are using Xcode 8 to build the app its using iOS 10..so the UINavigationBar you are watching is from iOS 10..So even you are running on iOS 11 its using iOS 10 UINavigationBar.But when u are building with Xcode 9 its using iOS 11 sdk. So its changing as iOS 11 behaviour.. Actually it depends on which sdk u are using.

Not able to turn on HealthKit capability

I'm trying to experiment with HealthKit on both iOS 9 and WatchOs 2.0, but when I try to turn on HealthKit in the project's Capabilities page, I get the following error message:
Link HealthKit.framework
The framework 'HealthKit.framework' was not found in the SDK for this
target.
The same happens for both the iOS App and the WatchKit App Extension.
I tried to manually find the framework in Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library, but it's not there either.
I'm using XCode 7.0 Beta 4.
Any tips?
Thanks!
So, I excluded Xcode and re-downloaded it.
HealthKit was suddenly there again.
Go figures..

IOS Simulator cannot find sdk and the simulated application quit errors

I have been having this Xcode problem for a couple of months where my iOS simulator stops working whenever i run any application on Xcode and says, "The simulated application quit." and "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." I am running Xcode 4.3.3 and have iOS sdk 5.1 and everything updated but it happened on my previous version of Xcode also. I have tried reinstalling Xcode over 10 times now and have been posting this question for a while now. No one has been able to get a solution. I have even sent in a bug report to apple but i don't think they will respond. I have tried doing everything every other person that has this problem has been told to do in other threads. I'm honestly thinking about just buying a new mac and seeing if Xcode will work on that one or taking in my current one to get looked at by apple. So if anyone has any ideas please let me know.
Go to Xcode -> Preferences -> Downloads and make sure the "Target SDK" you have selected in your project is in fact installed under the Downloads windows. For me this magically was uninstalled. Once i installed the SDK that my app was using, all worked again
This worked for me: http://www.colinbowern.com/posts/the-simulated-application-quit
I just deleted the folder "6.1" under ~/Library/Application Support/iPhone Simulator
The I just launched again the app and the simulator recreated correctly the 6.1 folder.
Resetting the simulator settings (iOS Simulator > Reset Contents and Settings) resolved this issue for me.
I had the same issue. For me suddenly all the installed simulators (4.3 through to 6.0) stopped working. I then went to Xcode -> Preferences -> Downloads, and there I had the chance to update at least the 5.0 simulator. This is now working, yet I was not able to get the 4.3 or 5.1 or 6.0 to work.
I have personally experienced a weird thing with xcode regarding this issue. Sometimes the sdk is installed properly but it still gives this error. I have two classes, if I call first class from the app delegate then the ipad simulator works fine but when I call the second class then it gives the error that the sdk needs to be re-installed.
In my case when the error occured, I had two errors in the second class. When I corrected the errors after debugging, the ipad simulator started to work completely fine. This is quite weird but its not the problem with your sdk, the problem is somewhere in the code.
This just happened to me. I tried to launch with iPhone 5.1 Simulator, got the error "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." I tried running iPad 5.1 Sim, which worked. I switched to non-retina iPad. Then I tried running iPhone 5.1 Simulator again, and it worked.

Can't run on device after installing iOS 4.2 and the 4.2 SDK

I installed iOS 4.2 on my 2nd-generation iPod Touch last week. I tried running my application on the device through Xcode, but it didn't work (because Xcode didn't yet support iOS 4). To solve that, I installed Xcode 3.2.5 and the iOS SDK 4.2. Now I can get the app to run in the iPhone/iPad Simulator just fine.
However, I can no longer select "Device" from the menu at the top of the screen. It's a choice, but when I try to click on it, it never actually gets a check mark.
Because of this, I can no longer run the app on my iPod. The other (related) problem is that I can't choose "Build and Archive" from the Build menu anymore because the target is not a device.
Why is this happening? Do I need to change some settings in my project, or something with my device itself?
EDIT: Upon closer investigation, it appears that I can't select anything but the iPhone Simulator 4.0. Maybe there's something wrong with the project file.
Check that the base SDK is set to Latest iOS (currently set to iOS 4.2) for your Xcode project and your target's product, then perform a rebuild and see if your iPod is recognized.
Also try visiting the Xcode Organizer and see if it's asking for anything from your iPod. Typically Xcode will want to collect some data from devices whose OS receive updates, so it can update itself and install your apps on the updated OS properly.

Resources