我的应用程序无法在iOS设备上启动(导出的.ipa) [英] My app won't start on an iOS device (exported .ipa)

查看:156
本文介绍了我的应用程序无法在iOS设备上启动(导出的.ipa)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Xcode 10中的Swift 5创建了一个应用程序,并将多个iOS设备的UDID添加到了我的开发人员帐户中(获得了99美元).

I created an app with Swift 5 in Xcode 10 and added the UDIDs of multiple iOS devices to my developer account (got the $99 one).

如果我通过Xcode在设备上安装了我的应用程序,则可以启动该应用程序,它带有一个图标,并且一切正常.

If I install my app on the device through Xcode, I can start the app, it's got an icon and everything works fine.

我还将该应用程序导出为.ipa文件:

I also exported the app as .ipa file:

  1. 在Xcode中选择通用iOS设备"(左上方)
  2. 创建档案(产品-档案)
  3. 打开档案列表(窗口-管理器)
  4. 突出显示刚刚创建的存档,然后单击分发应用"
    • iOS App Store-下一个
    • 导出-下一个
    • 两个选项均已选中(包括位码,上传应用程序的符号)-下一步
    • 自动管理签名-下一步
    • 两次输入Mac帐户的密码
    • 在查看myapp.ipa内容"屏幕上单击导出"
    • 选择文件夹导出为",然后单击导出"
  1. Pick the "Generic iOS Device" in Xcode (top left)
  2. Create archive (Product - Archive)
  3. Open the list of archives (Window - Organizer)
  4. Highlight on the archive that was just created and click on "Distribute app"
    • iOS App Store - Next
    • Export - Next
    • Both options checked (include bitcode, upload app's symboles) - Next
    • Automatically manage signing - Next
    • Enter the password for the Mac Account twice
    • Click "Export" on the "Review myapp.ipa content" screen
    • Pick folder to "Export As" and click "Export"

该应用程序确实显示在主屏幕上,但是只有默认的白色/灰色图标的深色版本(如果通过Xcode安装则使用实际的图标),如果按此按钮,该图标会摆动",但该应用程序无法打开.没有错误消息,也没有任何提示.

The app does show up on the home screen but it's only got a darker version of the default white/grey icon (it uses the actual icon if I install if through Xcode) and if I press on it, the icon "wiggles" once but the app doesn't open. There's no error message or any indication what's wrong.

该应用程序不在当前正在运行的应用程序"列表中(按两次主屏幕按钮).

The app's not in the "currently running apps" list (pressing the home button twice).

我将构建配置"(编辑方案-运行-信息)从调试"更改为发布"(建议在此处),但这也无济于事.

I changed the "Build Configuration" (Edit Scheme - Run - Info) from "Debug" to "Release" (suggested here) but that didn't help either.

我在导出时没有错过任何内容吗?如何使应用启动?

Did I miss anything while exporting? How do I make the app start?

推荐答案

问题是由选择"iOS App Store"引起的.相反,正如@DonMag所指出的,如果要导出一个.ipa文件,您可以将其拖入iTunes并安装在您的设备上,则必须使用"Ad Hoc"-只要将设备的UDID添加到您的开发者帐户中,当然.

The problem was caused by picking "iOS App Store". Instead, as @DonMag pointed out, you have to use "Ad Hoc" if you want to export an .ipa file that you can drag into iTunes and install on your device - as long as you added the device's UDID to your developer account, of course.

步骤1-3和5-7相同(与我的问题相同),但对于步骤4,请执行以下操作:

Step 1-3 and 5-7 are the same (as in my question) but for step 4 do this instead:

  1. 突出显示刚刚创建的存档,然后单击分发应用"
    • 临时-下一个
    • 下一步(分发选项)
    • 下一步(重新签名"myApp")
    • 输入密码两次
    • 导出(查看myApp.ipa内容)
    • 选择文件夹-导出
  1. Highlight the archive that was just created and click on "Distribute app"
    • Ad Hoc - Next
    • Next (Distribution options)
    • Next (Re-sign "myApp")
    • Enter your password twice
    • Export (Review myApp.ipa content)
    • Pick folder - Export

这篇关于我的应用程序无法在iOS设备上启动(导出的.ipa)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆