Failed to verify bitcode (unrecognized arguments: -disable-llvm-pass)

Apparently TestFlight now accepts Xcode 9 builds, so I tried to download a new version of my app for people with iOS 11 beta for testing.

The application was downloaded correctly, but then I received an email:

When processing your iOS application [...], errors occurred in the application dilution process, and your application cannot be diluted. [...] For information that may help resolve this issue, see Technical Note 2432 .

I checked the link and said to export the ad hoc deployment application to reproduce the error. So I did this, and this is what I got:

Failed to check bitcode in Frameworks / libswiftCore.dylib:

error: Clan flag check failed for bit code 02 (unrecognized arguments: -disable-llvm-pass)

In the logs, this error appears again for every infrastructure used by my application. For instance:.

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, such as libswiftFoundation.dylib , libswiftUIKit.dylib , etc.

So what should I do now? 😱

PS: I do not want to disable the bitcode.


Edit: I also tried to archive using Xcode 9 and export from Xcode 8. I get the same errors.

+5
source share

Source: https://habr.com/ru/post/1269348/


All Articles