Unsolved Uh, wth? I'm building for iOS, I do NOT have the simulator kit configured...
-
But qmake is apparently generating:
####### Custom Variables EXPORT_VALID_ARCHS = arm64 x86_64
and
EXPORT_QMAKE_XARCH_CFLAGS_x86_64 = -Xarch_x86_64 -mios-simulator-version-min=10.0 -Xarch_x86_64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk EXPORT_QMAKE_XARCH_LFLAGS_x86_64 = -Xarch_x86_64 -mios-simulator-version-min=10.0 -Xarch_x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk
This leads to the following linker error (unsurprisingly):
ld: symbol(s) not found for architecture x86_64
This is on Qt 5.11.1 and I'm linking in a static lib I built for arm64 (and intentionally did not build for x86_64.)
I know I'm linking the correct iOS library because if I comment out the LIBS+= entry in my PRO file I get the expected error for the expected architecture:
ld: symbol(s) not found for architecture arm64
What gives? Why is qmake creaking a makefile that sets flags for the simulator and results in an attempt to link for the simulator...?
Thx