Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 Beta 4 archive build error unimplemented IR generation feature bitcast between types of different size

I have a project I'm building with swift and Xcode 6 Beta 4. Trying to do a release build archive. When I build with release configuration I get the following error:

<unknown>:0: error: unimplemented IR generation feature bitcast between types of different size

Any clues on this? Seems to only happen when Selecting Product > Archive on the same scheme building cmd-B causes no issues and it builds successfully. I'm also able to Run the project in the ios simulator and on device with debug configurations.

like image 553
acorre Avatar asked Jul 22 '14 21:07

acorre


1 Answers

"Unimplemented IR generation feature" sounds like it's running into something in the compiler that hasn't been written yet. Seems to be an issue with the -Ofast setting for the Swift compiler; change your Release setting of Swift Compiler - Code Generation > Optimization Level to "None [-Onone]".

enter image description here

like image 200
Tim Avatar answered Sep 21 '22 10:09

Tim