Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occurred during export error on export for Ad Hoc distribution

Tags:

xcode

ios

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.

like image 543
vishal dharankar Avatar asked Dec 22 '16 11:12

vishal dharankar


1 Answers

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.

like image 181
Parth Adroja Avatar answered Oct 02 '22 00:10

Parth Adroja