错误 ITMS-90161 无效的配置文件 [英] ERROR ITMS-90161 Invalid Provisioning Profile

查看:61
本文介绍了错误 ITMS-90161 无效的配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于能够在我的 macbook 上使用虚幻引擎构建我的项目……但是……应用程序加载器不会接受它进入 App Store.我不是专为分发而设计的 iOS 应用.

I was finally able to get my project to build in Unreal Engine on my macbook... but... Application Loader won't accept it to the App Store. I'ts an iOS app made for Distribution.

Apple 资源(图片:https://i.imgur.com/RaY3bqe.jpg)
- 中级证书
- iOS 分发证书 + 密钥
- 应用程序 ID |类型:显式 |com.companyName.appName"
- 配置文件 |平台:iOS |类型:应用商店
- 钥匙扣|中级证书+iOS分发证书+密钥
- 选择了appName"和匹配的 Bundle ID 的 App Store Connect 项目.

Apple Resources (image: https://i.imgur.com/RaY3bqe.jpg)
- Intermediate Certificate
- iOS Distribution Certificate + Key
- App ID | Type: explicit | "com.companyName.appName"
- Provision Profile | Platform: iOS | Type: App Store
- Keychain | Intermediate Certificate + iOS Distribution Certificate + Key
- App Store Connect Project with "appName" and matching Bundle ID selected.

我是如何制作证书的
- 钥匙串访问 > 证书助手 > 从证书颁发机构请求证书......它制作了 CSR 和密钥
- 我使用 CSR 在 developer.apple.com 制作 iOS 分发证书
- 下载证书,拖放到我制作的UnrealEngineiOS"钥匙串中.

How I made my Certificate
- Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority… It made a CSR and key
- I used the CSR to make the iOS Distribution certificate at developer.apple.com
- Downloaded certificate, drag and dropped into the keychain I made "UnrealEngineiOS".

虚幻引擎设置(图片:https://i.imgur.jpg".com/bHvsvDA.jpg)
- 规定、证书有效
- 捆绑信息的命名方式与我命名证书、配置、ID 的方式完全相同.(区分大小写)
- 自动签名|关闭
- 构建配置 |航运

Unreal Engine Settings (image: https://i.imgur.com/bHvsvDA.jpg)
- Provision, Certificate are valid
- Bundle Info is named exactly how I named my certificate,provision,ID. (case sensitive)
- Automatic Signing | off
- Build Configuration | Shipping

好的……我用它来尝试在我的 macbook 上使用 Unreal 打包

Ok so… I used that to attempt to package in Unreal on my macbook

  1. 虚幻引擎 > 文件 > 打包项目 > iOS

    消息日志:未找到配置.将您的应用程序部署到设备需要一项规定
    消息日志:未找到签名密钥.无法对应用进行数字签名,因为未配置签名密钥

  2. 虚幻引擎 > 项目设置 > iOS > 构建 > 自动签名 |设置为开启
  3. 虚幻引擎 > 项目设置 > iOS > 构建 > iOS 团队 ID |我输入我的团队 ID
  4. 虚幻引擎 > 文件 > 打包项目 > iOS
  5. 构建成功!appName-IOS-Shipping.ipa 已创建.
  6. Xcode > 打开开发者工具 > 应用程序加载器 |我选择我的 ipa 文件
  7. 应用程序加载程序:正在审查您的应用程序..."
  8. 应用程序加载器 > 下一步
  9. 应用程序加载器:添加应用程序"、使用 App Store 验证资产"
  10. 应用程序加载器错误:

错误

错误 ITMS-90161:配置文件无效.com.companyName.appName [Payload/appname.app] 包中包含的配置文件无效.[缺少代码签名证书].向 App Store 提交应用程序时,应使用分发配置文件.有关更多信息,请访问 iOS 开发者门户."

Error

ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.companyName.appName [Payload/appname.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."

如何让 App Store 接受我的 ipa 文件?我做错了什么?

推荐答案

为什么会发生:

  1. Unreal Engine > Project Settings > For Distribution ☐ <-- 没有勾选因此虚幻引擎假定它是一个开发版本.(我只有 Build Configuration = Shipping 这还不够)
  2. 已选中自动签名
    由于 Unreal 假定开发构建它自动使用我的开发证书来签名或者我猜它以某种方式使用了从我的 Apple Dev 在线找到的开发条款.
  1. Unreal Engine > Project Settings > For Distribution ☐ <-- this was not checked on therefore Unreal Engine assumes it's a development build. (I only had Build Configuration = Shipping which was not enough)
  2. Automatic Signing was checked on
    Since Unreal assumed development build it automatically used my development certificate to sign or I guess it somehow used a development provision it found from my Apple Dev online.

解决方案

  1. 关闭自动签名
  2. 检查分发

不确定是否有帮助:

  1. 我在网上重命名了我的规定,然后苹果将其标记为无效.所以我重新制定了规定并将其命名为appName"
  2. 下载配置到 macbook
  3. 双击安装
  4. 打开虚幻引擎时,您应该会看到 Apple 风格的配置文件(eedfb-d1b5-45a3-b527....mobileprovision 等)
  5. 使用该条款来构建

我在解决此问题时遇到的另一个问题:
虚幻引擎仍在使用错误的配置进行构建,因此我删除了它存储的所有配置并重新安装了新配置:

Another issue I had while resolving this:
Unreal was still using the wrong provision to build so I deleted all the provisions it had stored and reinstalled my new one:

在 Macbook 上

On Macbook

  1. 关闭虚幻引擎
  2. 点击桌面使其聚焦
  3. 前往 > 前往文件夹...
  4. 转到文件夹:~/Library/MobileDevice/Provisioning Profiles
  5. 删除那些配置文件
  6. 现在您可以安装正确的配置和证书

虚幻引擎现在应该使用您选择的配置文件而不是随机的配置文件.

Unreal Engine should now use the provisioning profile you select rather than a random one.

这篇关于错误 ITMS-90161 无效的配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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