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.