How to choose an iOS provisioning profile command line while using Qmake to build

ε祈祈猫儿з 提交于 2019-12-11 17:24:51

问题


I am building my QtApp command line for iOS with qmake command like so:

qmake MyApp.pro -spec macx-ios-clang CONFIG+=iphoneos CONFIG+=device CONFIG+=$release

But I am getting a code signing error after compilation succeeds:

MyApp requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.3'

The signing works if I choose the required provisioning profile from Xcode UI but I need to do this command line using Qmake.

How can I choose a provisioning profile command line with qmake command ?

PS: I have multiple provisioning profiles in Xcode. This is possibly happening due to this?

来源:https://stackoverflow.com/questions/45039025/how-to-choose-an-ios-provisioning-profile-command-line-while-using-qmake-to-buil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!