Xcode 7.3 builds broken

With the new Xcode 7.3 (7D175) our builds are broken. If I try to build for device, with LTO enabled I get the following error.


ld: could not reparse object file /Users/tijmen/Library/Developer/Xcode/DerivedData/Phoenix2-furfgaejugikyudamykhggxdslrr/Build/Intermediates/ArchiveIntermediates/Phoenix 2 Release/IntermediateBuildFilesPath/Phoenix2.build/Distribution-iphoneos/Phoenix2.build/Objects-normal/armv7/pointdefenceability.o: 'Invalid cast (Producer: 'APPLE_1_703.0.29_0' Reader: 'LLVM 7.3.0')', using libLTO version 'LLVM version 7.3.0' for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)


When building with LTO disabled, the build fails on that same object file (during compilation), with the following error:


error: Invalid cast (Producer: 'APPLE_1_703.0.29_0' Reader: 'LLVM 7.3.0')

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1


How am I supposed to fix this? The object file mentioned is from C++ source, if that helps. Everything worked just fine with the old version of Xcode. Also builds just fine for the simulator.

Answered by tijmen in 126266022

Well I seem to have found a workaround of sorts. Removing 'armv7' from the valid architectures list lets the build complete. Only arm64 builds is fine for us.

Reproduces on a different Mac using the same configuration (latest Xcode, OS X). I really need a workaround, because right now we cannot make any new builds.

Accepted Answer

Well I seem to have found a workaround of sorts. Removing 'armv7' from the valid architectures list lets the build complete. Only arm64 builds is fine for us.

This did not help me, have you found another way to fix this?

No I have not looked into another way or a real fix. Only making 64bit builds works for us.

hi I'm Zato , May I add ur skype

Xcode 7.3 builds broken
 
 
Q