I have an iOS app which I am trying to export for ad hoc distribution everything goes well until I select export option and after selecting "export for all devices" following error pops up.
An error occurred during export The data couldn’t be read because it isn’t in the correct format.
Not sure what does that mean, any help is appreciated.
Disable the BitCode from your project and try to build it again.
What does the ENABLE_BITCODE actually do, will it be a non-optional requirement in the future?
When you build your project, Xcode invokes clang for Objective-C targets and swift/swiftc for Swift targets. Both of these compilers compile the app to an intermediate representation (IR), one of these IRs is bitcode. From this IR, a program called LLVM takes over and creates the binaries needed for x86 32 and 64 bit modes (for the simulator) and arm6/arm7/arm7s/arm64 (for the device). Normally, all of these different binaries are lumped together in a single file called a fat binary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With