问题
I am trying to distribute my app to TestFlight, and currently my app requires iOS 13 as well as NFC access.
I do not intend to release my app until iOS 13 comes out of beta, however I would like my QA team to be able to test it.
I can build and archive the app from Xcode 11 beta, however if I try to upload it I get the following errors:
App Store Connect Operation Error
ERROR ITMS-90087: "Unsupported Architectures. The executable for myappsname.app/Frameworks/SomeNFCFrameworkIWrote.framework contains unsupported architectures '[x86_64]'."
App Store Connect Operation Error
ERROR ITMS-90778: "Invalid entitlement for core nfc framework. The sdk version '13.0' and min OS version '13.0' are not compatible for the entitlement '{com.apple.developer.nfc.readersession.formats}' because '{NDEF is disallowed}'."
App Store Connect Operation Error
ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'myappsname.app/Frameworks/SomeNFCFrameworkIWrote.framework/SomeNFCFrameworkIWrote' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."
App Store Connect Operation Error
ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker."
The first one is one I could possibly be fixed by not using a framework that contains the iOS Simulator architecture, however the second one states that core NFC entitlements aren't allowed in iOS13 which doesn't make sense since they are ONLY allowed in iOS13. The third and fourth errors also don't make sense as I am using the latest Xcode (of course it is in beta) and it was built with apples linker.
I have also tried distributing for development but when I do that I just get IPA processing failed
.
Is there any way to distribute my iOS 13 app for internal testing?
Update: After fixing the first issue I am now only getting this error (Same as the second one from above)
ERROR ITMS-90778: "Invalid entitlement for core nfc framework. The sdk version '13.0' and min OS version '13.0' are not compatible for the entitlement '{com.apple.developer.nfc.readersession.formats}' because '{NDEF is disallowed}'."
回答1:
It looks like you trying to use a project generated by Xcode 10. Could you try this:
Locate your
Entitlements-Release.plist
file. You can find the location here: "Signing -> Code Signing Entitlements". It's usually "App Name/Entitlements-Release.plist"Remove "NDEF" from
Entitlements-Release.plist
file.
- Archive & Upload
回答2:
i have tried the above solution, successfully passed upload app to TestFlight, But when tester download the apps in TestFlight, they get error. The reason seems to be because removed "NDEF" from Entitlements-Release.plist file.
来源:https://stackoverflow.com/questions/57530604/xcode-11-beta-cant-upload-app-to-testflight