我在OS X 10.11.6上依次安装了:
Command_Line_Tools_macOS_10.11_for_Xcode_8.2.dmg
Xcode_8.2.1.xip
qt-opensource-mac-x64-android-ios-5.6.2.dmg
并设置了sudo ln -s xcodebuild xcrun,因此运行Qt的桌面程序(空窗体)没有问题。单独使用Xcode创建一个ojbect-c的空窗体项目,使用模拟器运行也没有问题。
但同一个Qt程序切换到iOS-simulator状态下,却无法编译成功,报错如下:
:-1: error: Failed to run -q -iphone -f 0 -rem text /Users/new_cheval/build-untitled2-iphonesimulator_clang_Qt_5_6_2_for_iOS-Debug/untitled2.xcodeproj/Default-568h@2x.png /Users/new_cheval/build-untitled2-iphonesimulator_clang_Qt_5_6_2_for_iOS-Debug/Debug-iphonesimulator/untitled2.app/Default-568h@2x.png
请问这是为什么?谢谢!