Qt Creator pro file build ios iphoneos and iphonesimulator

#iphonesimulator
CONFIG(iphonesimulator, iphoneos | iphonesimulator) {
    #here do some things for iphonesimulator

    # for iphonesimulator error: file was built for x86_64 which is not the architecture being linked (i386)
    # for error Ld .object/xxxxxxxxxx/xxxxxxxx/i386/xxxxx normal i386
    QMAKE_APPLE_SIMULATOR_ARCHS = x86_64 #i386 for 32bit
}
#iphoneos
CONFIG(iphoneos, iphoneos | iphonesimulator) {
    #here do some things for iphoneos
}

猜你喜欢

转载自blog.csdn.net/cbdg3757/article/details/79893119