Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 11 beta can't upload app to TestFlight

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}'."
like image 612
Quinn Avatar asked Aug 16 '19 20:08

Quinn


1 Answers

It looks like you trying to use a project generated by Xcode 10. Could you try this:

  1. Locate your Entitlements-Release.plist file. You can find the location here: "Signing -> Code Signing Entitlements". It's usually "App Name/Entitlements-Release.plist"

  2. Remove "NDEF" from Entitlements-Release.plist file.

enter image description here

  1. Archive & Upload
like image 73
Yury Bushev Avatar answered Sep 24 '22 00:09

Yury Bushev