Archive building error with architecture armv7s in IOS device
-
I wrote a iOS program that run at armv7s.it is fine in the simulator(i guess simulator is not the newest architecture).But when i build archive or run at device(ipad 4), there are many link errors.The reason from the information is libQt5Core and libQt5Network are not build for architecture armv7s.
so, Is this a bug,or i used wrong lib?
by the way,i use QT 5.2 Beta1,lib path is ios_armv7,developer IDE is xcode 5.0.1.Please help me!
Thanks a lot!
Best regards~ -
Hi and welcome to devnet,
You have to use a Qt build that was built agains the iPhone SDK for that. The simulator uses another SDK.
This means you need two different builds, one for the simulator and one for the actual devices.
-
Haven't tested it but you can try by editing the macx-io-clang mkspec and add arm64 to the QMAKE_IOS_DEVICE_ARCHS
-
Did you re-run configure after modifying the file ?
-
Because they where generated when you configured the first time, you have to do a make confclean when modify things like that.
-
Then just delete the build folder and start from scratch