[英]Do I need a physical iPhone to compile and distribute IOS apps?
I have a simple app (in Qt/C++) which compiles and runs great in the iphone simulator on my Mac.我有一个简单的应用程序(在 Qt/C++ 中),它在我的 Mac 上的 iphone 模拟器中编译和运行得很好。 When I try to compile it (kit) for the IOS (non-simulator) I get a warning that my kit settings are incomplete.
当我尝试为 IOS(非模拟器)编译它(工具包)时,我收到一条警告,指出我的工具包设置不完整。
Qt : In the Kit settings for IOS Qt insists on selecting a device - which I don't have. Qt :在 IOS 的套件设置中 Qt 坚持选择一个设备——我没有。 So the kit is incomplete, and I get compilation errors.
所以工具包不完整,我得到了编译错误。 (and Kit has a warning sign).
(并且 Kit 有一个警告标志)。
Apple : During compile I get an error that relates to missing IOS App Development Profile...but I plan to distribute so why does it want a development profile? Apple :在编译过程中,我收到一个与缺少 IOS App Development Profile 相关的错误...但我打算分发,为什么它需要一个开发配置文件? I have a IOS App distribution profile.
我有一个 IOS 应用程序分发配置文件。
I was hoping to build and test my app using simulator only, then distribute in apple store.我希望仅使用模拟器构建和测试我的应用程序,然后在苹果商店中分发。
For anyone else in this situation, it seems that XCode needs a development profile to compile (regardless of whether or not you plan to distribute) for anything other than a simulator.对于处于这种情况的其他任何人,似乎 XCode 需要一个开发配置文件来编译(无论您是否打算分发)除了模拟器之外的任何东西。 Then, it needs a distribution profile if you want to distribute the app.
然后,如果你想分发应用程序,它需要一个分发配置文件。
Since a development profile must include the Universal Device ID for at least one device, you need to add at least one device.由于开发配置文件必须包含至少一台设备的通用设备 ID,因此您需要至少添加一台设备。 (Or you need to get the UDID of a real apple device to create one).
(或者您需要获取真实苹果设备的 UDID 才能创建一个)。 Once you have the development profile you can compile and distribute the app.
获得开发配置文件后,您可以编译和分发应用程序。
I could not find any way around this.我找不到任何解决方法。 (Note that if you are compiling for the simulator it will compile without the profile, BUT, the simulator UDID is refused as a valid device in the apple store connect)
(请注意,如果您正在为模拟器编译,它将在没有配置文件的情况下编译,但是,模拟器 UDID 被拒绝为苹果商店连接中的有效设备)
Once XCode is happy then Qt is happy一旦 XCode 快乐,那么 Qt 就会快乐
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.