{N} 7.0.1 adds the wrong iOS 14 frameworks to project #8937
Comments
|
I was able to find a temporary workaround... Here's a simplified step by step
basically a combination of both as a side note: I'm not still 100% sure it worked but usually after 3 minutes from submitting for review I immediately got the error, it hasn't so far for about an hour... by usual apple standards i can only be sure about this in 2 days but So far it seems ok.. I'll update if this doesn't work |
|
When can we expect a fix? Just encountered this as well! |
|
It would be sufficient to rebuild the project and publish as a new version I'm pretty sure so it shouldn't take long |
|
@eltharynd thanks for looking into this - will be publishing a fixed version tomorrow! |
|
Published If able, pull in new version, rebuild/submit the app. Update: Also make sure you are building with a stable release of xcode! |
|
Tried installing package, and publishing, but same error, will try to clean. Edit: Nope same problem: Dear Developer, We identified one or more issues with a recent submission for App Store review for your app, "***". Please correct the following issues, then upload again. ITMS-90512: Invalid sdk value - The value provided for the sdk portion of LC_VERSION_MIN_IPHONEOS in JKG2.app/Frameworks/NativeScript.framework/NativeScript is 14.2 which is greater than the maximum allowed value of 14.0. Best regards, The App Store Team |
Day two.. apple is still looking at the clouds... Update: app is in review at this very moment.. |
|
...... it didn't crash on emulator, it didn't crash on phisical devices... a user has been using it daily with no crashes............ I. |
|
Ok here's what makes it crash...
@rpath/NativeScript.framework/NativeScript' not found Which i don't understand how is that even possible but I'm gonna run some tests on real devices right now and I'll take a chance to test the Frankly my best (but completely random) guess is Apple is testing for their whole "let's make native mobile apps work on desktop machines" thing.. which i do not want/care for and personally my thoughts on the whole matter are "frick you, Apple!" |
|
Forget What i just edited out... I've noticed the app crashes when i close it...
Here's the log from the exception in debugging
Ok I KNOW this isn't exactly a good approach.. but.. at this point it's more important that our app works cause it's an internal app and many employees have been stuck for a while... i commented this line
in -I just submitted for review... it passed the usual couple mins for the 14.2 sdk error... I'll keep you posted about the publishing |
|
@rigor789 getting the same issue as @michael-dots even while using |
|
@BlueHunter99 @michael-dots I wonder if this is coming from a podfile, because there's no mentions of post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'LC_VERSION_MIN_IPHONEOS'
end
end
end |
|
Hi @rigor789 , |
|
@rigor789 Just tested the Podfile solution and it doesn't work
|
|
@jeremypele and that's using |
|
I tried with @nativescript/ios@7.0.2-rc.0 and the Podfile but my app crash on launch when downloaded from TestFlight. It works very well on the physical device (or simulator) directly with the ns debug command. |
|
@ethnovode any logs you can get from the device? (submit the crash to TestFlight and get it from there perhaps?) |
|
Yes using the rc version. Got the same error coming from Apple |
|
Not sure if this is relevant but platforms/ios/build/Release-iphoneos/NativeScript.framework/Info.plist .. and some other files contain a DTPlatformVersion = 14.2 Edit: these files origin from node_modules/@nativescript/ios/framework/internal/XCFrameworks.zip |
HERE'S THE ULTIMATE GUIDE ON HOW TO SUCCESSFULLY BUILD FOR PUBLISHINGtldr: We're gonna build and archive our own Nativescript.xcframework and TKLiveSync.xcframework, and embed & sign them in our app.. Clone the runtime repo somewhere Install Cmake and LLVM (not really sure if needed but you never know) Open the runtime in xcode
Update the project to use the 12.0 sdk instead You will get an error, click on it to get to the file and modify it this way
In the runtime folder run the following commands
This will build and archive the two Schemes in the .xcframework format On your project clean everything to be sure there's no other earlier attemps laying around Open
This will avoid your app crashing when closing and therefore allow it to pass app store review (altho obv this will have to be fixed) Prepare the xcode project Open it in xcode, then click on your project name, in the General tab click on your app target and look for Click on the plus sign, hit "Add Other..." > "Add Files..." and navigate to the Make sure both are on "Embed & Sign" At this point you can Build, Archive and Deploy normally. notes: TODO: UPDATE 2020-10-09 10:14 UTC: UPDATE 2020-10-09 11:41 UTC: |
|
Hope we can get a -rc fix soon, as I'm not comfortable trying to follow @eltharynd 's workaround. |
I wasn't able to get the crashlog from TestFlight but with So I guess it's a problem with Firebase. |
Using the latest version of @nativescript/firebase myself and have not problem with it. Push notifications are properly received |
|
I can confirm
|
|
Hi @eltharynd , thank you for your workaround. We just submitted the app to the app store. let's hope. |
|
I didn't properly updated firebase to ns7 with the require still in place instead of the import. That was triggered only on production environnement. So now my app works fine from TestFlight for iOS 14 devices. I still seems to have some troubles with iOS 10 (didn't test other iOS), the app doesn't launch (simulator nor physical). |
|
@eltharynd I'm worried about using |
|
Where's the |
|
The new runtime is here |
|
We have pushed a new RC1 -- this should solve the upload to Apple issue. We sincerely apology for the issue; somehow the last RC still got built with a XCode Beta even though the Xcode tooling said it was using the XCode GM 12.01.
then a
You should be good after this... |
|
As for this issue:
Whoever can duplicate that issue; can they please create a new bug report with their package.json. My test app that I just ran didn't have any crashing issues on startup or quiting of the app. So we need some steps to try and duplicate that issue. |
It worked for my app's submission. Applestore 's not longer reject it with the ITMS-90512 issue. Xcode 12.0.1 |
|
Same here, built yesterday with the new RC and passed Apple validation today |
|
We're still experiencing NativeScript/nativescript-cli#5411 with the latest |
|
I was facing this issue on @NathanaelA walked me through the steps to update to Here's my terminal history for doing a clean build with the latest iOS runtime: rm -rf platforms/ios
# Removing `node_modules/@nativescript/ios` would be sufficient, but
# I decided I might as well re-install all my node modules while I was at it.
rm -rf node_modules
rm package-lock.json
tns platform add ios@7.0.3
npm install
tns run ios --device "iPhone 11 Pro" --no-hmr
# Check it works as intended on the simulator.I then opened Now my app is waiting in review, and hasn't been immediately rejected due to EDIT: My app was accepted! |
Environment
Describe the bug
NativeScript.framework/NativeScriptandTKLiveSync.framework/TKLiveSyncare compiled with sdk 14.2 so it works on simulators/devices/testflight but if you try to submit for review to the app store it saysTo Reproduce
Just submit for review an app to the app store
Expected behavior
The two frameworks should be built with release sdk not beta
Also here
Originally posted by @eltharynd in #8867 (comment)
The text was updated successfully, but these errors were encountered: