1.编译错误
Check dependencies
Code Signing Error: No profiles for 'xxx.iosApp' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'xxx.iosApp'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 14.4'
原因代码没有签名,在QtCreate的设置项目中设置签名:
2.编译成功了,在真机上不能起来
Starting(Secure) service "com.apple.debugserver" on device 0add18e7b03a13736c1cbecd666ac338fdb5595e failed, AMDeviceStartSecureService returned The service is invalid. (0xe8000022)
no gdb connection
原因是iPhone的系统版本是14.4,qtcreate不支持,后面用一个iOS系统13.1的版本机器连拉可以了
3.app安装在iPhone上了,运行没反应
Starting remote process.
TransferAppSession(0add18e7b03a13736c1cbecd666ac338fdb5595e, /Users/chenyj/qtproject/example/build-iOSApp-Qt_5_12_8_for_iOS-Debug/Debug-iphoneos/iOSApp.app)Unexpected reply: ESecurity (455365637572697479) vs OK (4f4b)
原因是,没有把开发者帐号添加信作,处理方法
打开手机的设置=》通用=》描述文件与设备管理,把开发者帐号添加信任。
Qt转Mac工程
/Users/xxx/Qt5.12.8/5.12.8/clang_64/bin/qmake iOSApp.pro -spec macx-xcode
Qt转iOS工程
/Users/xxx/Qt5.12.8/5.12.8/ios/bin/qmake iOSApp.pro -spec macx-xcode