1.说明
编译平台:Mac OS 10.11.6
Qt Version:5.8.0
Xcode Version:8.2.1
编译前需要安装Xcode comman line
Python、Ruby、Perl已经系统预装
2.Qt其他版本说明
开始使用Qt5.6.2进行编译,在两个文件中出现bug,分别为:src/bluetooth/osx/osxbtcentralmanager.mm;src/bluetooth/osx/osxbtledeviceinquiry.mm。
QtCreator需要使用4.2.1否则无法开启模拟器,使用Qt5.6.2编译完成之后会出现闪退现象,报错原因:[QIOSViewController setPrefersStatusBarHidden:]: unrecognized selector sent to instance 0x7f89cb001dc0,google了一下报错原因,没有找到对应的解决方法,最后还是使用Qt5.8.0尝试编译。
3.Configure指令
configure -prefix /Users/spoon/Dev/Qt/QtiOS -hostprefix /Users/spoon/Dev/Qt/QtiOS -xplatform macx-ios-clang -release -opensource -accessibility -nomake examples
Configure summary:
Building on: x86_64
Building for: arm
Configuration: cross_compile compile_examples largefile neon precompile_header accessibility release simulator_and_device build_all c++11 c++14 c++1z concurrent no-pkg-config reduce_exports static stl
Build options:
Mode ................................... release
Building shared libraries .............. no
Us