Problems with IOS 11 SDK

I am having a problem trying to publish my app with IOS SDK 11.

Has anyone managed to publish on the Apple App Store with XCODE 9?

The problem I’m getting is that the bootimage.o is compiled with the wrong ARM64 sub type.

It is showing as compiled with sub type 13 when it should be 0.

This is the error from XCODE.

ld: object file …/…/build/ios-arm64/libs/bootimage-bin.o was built
for different arm64 sub-type (13) than link command line (0) file
‘…/…/build/ios-arm64/libs/bootimage-bin.o’ for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Anyone with any ideas?

I found the solution to this.

It’s a simple one for once.

In XCODE you select the target and BUILD SETTINGS.

Then in OTHER LINKER FLAGS add -force_cpusubtype_ALL

et voila!

2 Likes

Oh, thank you so much.

Recently upgraded my VM to High Sierra and Xcode 10.

Unfortunately Xcode 10 fails with a different error (Undefined symbols for architecture arm64), but then I saw this warning:

ld: warning: ignoring file ../../build/ios-arm64/libs/bootimage-bin.o, file was built for unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x0C 0x00 0x00 0x01 0x0D 0x00 0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being linked (arm64): ../../build/ios-arm64/libs/bootimage-bin.o

This tool knows more:

$ lipo build/ios-arm64/libs/bootimage-bin.o -info
Non-fat file: build/ios-arm64/libs/bootimage-bin.o is architecture: cputype 16777228 cpusubtype 13

Then I suddenly remembered your posting… without it I doubt that I could find out that’s cpu type problem. So thank you very much!

1 Like