简体   繁体   English

编译和分发 IOS 应用程序是否需要物理 iPhone?

[英]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.我希望仅使用模拟器构建和测试我的应用程序,然后在苹果商店中分发。

  1. Do I need a physical iphone so Qt Creator Kit is happy?我需要一部实体 iPhone 才能让 Qt Creator Kit 满意吗?
  2. Do I need a physical iphone so Apple can create and IOS App Development platform which is a prerequisite to compilation?我是否需要一个物理 iphone 以便 Apple 可以创建和 IOS 应用程序开发平台,这是编译的先决条件?

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.

相关问题 我是否需要注册iOS开发人员计划才能分发我的应用程序? - Do I need to enroll in iOS developer program to distribute my application? 如何通过Testflight分发应用程序以在iOS 7上对Beta版iPhone应用程序进行Beta测试 - How to distribute app through Testflight for Beta testing iPhone apps on iOS 7 在应用程序自动运行之前,我需要输入iPhone密码吗? - Do I need to enter the iPhone passcode before apps run automatically? 我是否必须使用SDK 5.1将xcode升级到4.3.2才能在ios 5.1上分发应用程序? - Do I have to upgrade xcode to 4.3.2 with sdk 5.1 to distribute apps on ios 5.1? 为通用iOS应用制作图像需要什么分辨率? - What resolution do I need to make images for universal iOS apps in? 我需要iOS设备来测试内置PhoneGap的应用程序吗? - Do I need an iOS device to test PhoneGap Built apps? 是否需要为iPhone X的120Hz触摸阵列更新iOS应用程序? - Do iOS apps need to be updated for the iPhone X's 120Hz touch array? 如何在没有 .mobileprovision 的情况下分发临时 OTA 应用程序? - How do I distribute ad hoc OTA apps without the .mobileprovision? 我是否需要单独的Twitter应用程序才能与iOS和Android应用程序+ Web集成? - Do I need separate Twitter apps for integration with iOS and Android apps + Web? 我们需要实体电话才能在iOS上开始开发吗 - Do we need a physical phone to start developing on IOS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM