Apparently TestFlight now accepts Xcode 9 builds, so I tried to upload a new version of my app for people with iOS 11 beta to test.
The app was uploaded correctly, but then I got an email saying this:
While processing your iOS app [...] errors occurred in the app thinning process, and your app couldn’t be thinned. [...] For information that may help resolve this issue, see Tech Note 2432.
I checked the link and it says to export the app for ad hoc deployment in order to reproduce the error. So I did that and this is what I got:
Failed to verify bitcode in Frameworks/libswiftCore.dylib:
error: Clang option verification failed for bitcode 02 (unrecognized arguments: -disable-llvm-passes)
In the logs that error appears again for each framework my app uses. E.g.:
code = 0;
description = "Failed to verify bitcode in Realm.framework/Realm:\nerror: Clang option verification failed for bitcode 001 (unrecognized arguments: -disable-llvm-passes)\n\n";
info = {
};
level = ERROR;
type = "malformed-payload";
The same goes for many default libraries, like libswiftFoundation.dylib, libswiftUIKit.dylib and so on.
So what do I do now?
PS: I don't want to disable bitcode.
Edit: I also tried archiving with Xcode 9 and exporting with Xcode 8. I get the same errors.