How do I set ios app bundle Id from QT application(如何从 QT 应用程序设置 ios 应用程序包 ID)
问题描述
我使用qt/qml开发和应用.在 iOS 设备上成功运行应用程序.
I have developed and application by using qt/qml. Successfully run the application in iOS device.
我如何从 QT 应用程序设置 ios 应用程序包 ID,因为每次构建它都会重置.
How do I set ios app bundle Id from QT application since, each time build it is reseting.
推荐答案
如果您使用的是 QT 5.11.1 或更高版本,请在 .pro 文件中设置以下变量:
If you are using QT 5.11.1 or higher, set the following variable in your .pro file:
TARGET = app
QMAKE_TARGET_BUNDLE_PREFIX = com.xxxx
最终结果是 com.xxxx.app 的包标识符.如果您使用的是较旧的 QT,您可能会遇到以下错误:
The final result is a bundle identifier of com.xxxx.app. If you're using an older QT, you might get hit with the following bug:
https://bugreports.qt.io/browse/QTBUG-66462
为了让我的签名生效,我必须将此答案与这篇文章的答案结合起来:
For my signing to work I had to combine this answer with the answer from this post:
Qt for iOS:需要代码签名
为了节省您的时间,这是我的完整 .pro
To save you the time, here is my complete .pro
ios: {
QMAKE_TARGET_BUNDLE_PREFIX = com.xxxx
QMAKE_DEVELOPMENT_TEAM = XXXX
QMAKE_PROVISIONING_PROFILE = XXXXX
}
请记住,您需要先为相关连接的设备设置配置文件,然后才能进行任何操作.为此,您需要访问 apple.developer 网站.有很多关于手动临时证书的文档.我必须通过手动过程,然后进入 xcode -> 帐户 -> 下载手动配置文件;在我的工作之前.
Please keep in mind you need to have your provisioning profile setup for the connected device in question before any of this will work. To do that you'll need to goto the apple.developer website. There is lots of documentation on manual provisional certs. I had to go through the manual process, and then go into xcode -> account -> Download Manual Profiles; before mine worked.
这篇关于如何从 QT 应用程序设置 ios 应用程序包 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从 QT 应用程序设置 ios 应用程序包 ID


基础教程推荐
- 如何从 logcat 中删除旧数据? 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01