错误 ITMS-90174:“缺少配置文件 - iOS 应用程序必须在名为 embedding.mobileprovision 的文件中包含配置文件。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30972472/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ERROR ITMS-90174: "Missing Provisioning Profile - iOS Apps must contain a provisioning profile in a file named embedded.mobileprovision."
提问by Jones
When I upload to Application Loader I receive the following message:
当我上传到 Application Loader 时,我收到以下消息:
ERROR ITMS-90174: "Missing Provisioning Profile - iOS Apps must contain a provisioning profile in a file named embedded.mobileprovision."
I have this contained in my app folder. When I compress no matter how obvious I make the provisioning profile, I receive this error trying to upload my app for Apple.
我在我的应用程序文件夹中包含了这个。无论我制作配置文件多么明显,当我压缩时,我都会收到此错误,尝试为 Apple 上传我的应用程序。
回答by Shane McCurdy
If you are using Ionic / Cordovalike I am see this announcement...
如果您使用Ionic / Cordova就像我看到此公告...
https://github.com/apache/cordova-ios/issues/407
https://github.com/apache/cordova-ios/issues/407
It's just onesetting, then re-run your Archive to Submit to the Apple Store like normal.
这只是一种设置,然后像往常一样重新运行您的存档以提交到 Apple Store。
Go to "File" > "Project Settings..."
转到“文件”>“项目设置...”
then select "Legacy Build System"
然后选择“旧版构建系统”
回答by Pol Fernández
To upload a archive to AppStoreConnect I had to change the default build system in xcode10 within "File > Project / Workspace Settings" and change it to the Legacy Build system.
要将存档上传到 AppStoreConnect,我必须在 xcode10 中的“文件 > 项目/工作区设置”中更改默认构建系统,并将其更改为旧版构建系统。
This worked for me
这对我有用
回答by Joelson Rocha
Access https://developer.apple.com/account
访问https://developer.apple.com/account
1 - Certificates, IDs & Profiles
1 - 证书、ID 和配置文件
2 - Provisioning Profiles
2 - 配置文件
3 - Distribution
3 - 分销
4 - Add Button
4 - 添加按钮
5 - Distribution -> App Store -> Continue
5 - 分发 -> App Store -> 继续
6 - Choose Apple Id -> Continue
6 - 选择 Apple Id -> 继续
7 - Select certificates -> Continue
7 - 选择证书 -> 继续
8 - Set Profile Name -> Continue
8 - 设置配置文件名称 -> 继续
9 - Download
9 - 下载
10 - In Xcode -> Product -> Archive, In Re-sign "App Name" make option Manually manage signing -> choose the Distribution certificate and import your provisioning profile downloaded on step 9.
10 - 在 Xcode -> Product -> Archive,在 Re-sign "App Name" make 选项手动管理签名 -> 选择分发证书并导入您在第 9 步下载的配置文件。
Sorry for my English, I'm from Brazil
对不起我的英语,我来自巴西
回答by idea2real
in .plist add Application requires iPhone environment , Yes !
在 .plist 中添加 Application 需要 iPhone 环境,是的!
I tested this , really worked !
我测试了这个,真的有效!
回答by Sisky
If you submit your build to the AppStore in an IPA archive format (example: Game.ipa), make sure that the Payload folder is at the root of the archive, otherwise you'll get the error: Missing Provisioning Profile - - Apps must contain a provisioning profile in a file named embedded.mobileprovision.
如果您将构建以 IPA 存档格式(例如:Game.ipa)提交到 AppStore,请确保 Payload 文件夹位于存档的根目录,否则您将收到错误消息:Missing Provisioning Profile -- Apps must在名为embedded.mobileprovision 的文件中包含一个配置文件。
回答by Satish A
I've faced same problem and solved by following below points.
我遇到了同样的问题,并通过以下几点解决了。
- For our clarification, please re-download your distribution provisional profile.
- Please make sure you are generating ipa by setting "Generic iOS Device" in xcode.
- 为了我们的澄清,请重新下载您的分发临时配置文件。
- 请确保您通过在 xcode 中设置“通用 iOS 设备”来生成 ipa。
- Clean and build your project.
- Place your product file in "Payload" folder and compress this folder and change .zip to .ipa
- 清理并构建您的项目。
- 将您的产品文件放在“Payload”文件夹中并压缩该文件夹并将 .zip 更改为 .ipa
Now upload your ipa. It worked for me.
现在上传你的ipa。它对我有用。
Hope this helps.
希望这可以帮助。
回答by rtrujillor
For those that are using the command line to build, and were using the flag (UseModernBuildSystem=0) to avoid this problem, seems that since the release of package cordova-ios 5.0.0, it's no longer needed. So if you update your Ionic / Cordova App dependency, will work normally.
对于那些使用命令行构建并使用标志 (UseModernBuildSystem=0) 来避免此问题的人来说,似乎自从软件包cordova-ios 5.0.0 发布以来,不再需要它了。所以如果你更新你的 Ionic/Cordova App 依赖,会正常工作。
回答by Supriya
I can confirm your solution works. To summarize the hacks so far: 1. While building, we need to do (if using ionic)?ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0" 2. When you open it in Xcode, you can continue using "Automatic Sign" for the project, but when you upload the archive to App Store (for TestFlight or App Store) , you need to select "manually manage signing". When you select manual signing you will see there is no associated provisioning profile (huh...) so select one, and the right distribution profile. I've managed to upload and distribute successfullly.
我可以确认您的解决方案有效。总结到目前为止的 hacks: 1. 在构建时,我们需要做(如果使用 ionic)?ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0" 2. 当您在 Xcode 中打开它时,您可以继续对项目使用“自动签名”,但是当您将存档上传到App Store(对于TestFlight或App Store)时,您需要选择“手动管理签名”。当您选择手动签名时,您将看到没有关联的配置文件(呵呵...),因此请选择一个,以及正确的分发配置文件。我已经成功上传和分发。
回答by wottle
To locate the embedded provisioning profile in the app binary:
要在应用程序二进制文件中找到嵌入式配置文件:
In Xcode, select your project in the project navigator. Click the disclosure triangle next to the project to reveal the contents. Click the disclosure triangle next to Products to reveal the binary. Control-click the binary file, and choose “Show in Finder” from the shortcut menu to go to the Xcode build location in the Finder.
在 Xcode 中,在项目导航器中选择您的项目。单击项目旁边的显示三角形以显示内容。单击产品旁边的显示三角形以显示二进制文件。按住 Control 键单击二进制文件,然后从快捷菜单中选择“在 Finder 中显示”以转到 Finder 中的 Xcode 构建位置。
In the Finder, Control-click the binary file, and choose Show Package Contents from the shortcut menu.
在 Finder 中,按住 Control 键点按二进制文件,然后从快捷菜单中选取“显示包内容”。
For iOS apps, a provisioning profile called embedded.mobileprovision appears in the Finder window.
对于 iOS 应用程序,Finder 窗口中会出现一个名为 embedding.mobileprovision 的配置文件。
For Mac apps, the embedded file is called embedded.provisionprofile.
对于 Mac 应用程序,嵌入的文件称为 embedding.provisionprofile。
To verify the entitlements of the embedded provisioning profile
验证嵌入式供应配置文件的权利
Launch Terminal (located in /Applications/Utilities), and enter this text (do not press Return):
启动终端(位于 /Applications/Utilities),然后输入此文本(不要按 Return):
security cms -D -i
security cms -D -i
In the Finder, drag the provisioning profile in the app binary to Terminal.
在 Finder 中,将应用程序二进制文件中的配置文件拖到终端。
Press Return. This command outputs a property list in XML format.
按回车。此命令以 XML 格式输出属性列表。
If you don't have an embedded.mobileprovision file, that seems to be the problem and you probably did not build the app properly for app store distribution.
如果您没有embedded.mobileprovision 文件,这似乎是问题所在,而且您可能没有为应用商店分发正确构建应用。
回答by Peter B. Kramer
I redid the 'Upload to App XStore..." and it worked the second time.
我重做了“上传到 App XStore...”,它第二次工作了。