xcode 存档 iOS 应用程序:未找到合适的记录,请验证您的包标识符是否正确
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30223656/
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
Archive iOS app : no suitable records were found verify your bundle identifier is correct
提问by Mathias Verhoeven
I am trying to archive an ios app in xcode but keep getting the following error message:
我正在尝试在 xcode 中存档一个 ios 应用程序,但不断收到以下错误消息:
I've correctly created an App ID and a provision profile :
but the message keeps appearing whenever I want to validate the archive in xcode.
Does anyone knows whats wrong here?
我已经正确创建了一个应用程序 ID和一个配置文件:
但是每当我想在 xcode 中验证存档时,消息就会不断出现。有谁知道这里出了什么问题?
回答by rustyMagnet
This is a painful problem but easy to solve - below is a simple solution. I hope it helps:
这是一个痛苦的问题,但很容易解决 - 下面是一个简单的解决方案。我希望它有帮助:
iTunes Connect:
iTunes 连接:
- In your browser, go to iTunes connect.
- Add your New App / edit your existing app.
- Go to App information.
- Check the Bundle ID name.
- If there is no bundle ID, make sure you create one.
- I used the WildCard bundle ID. That means, your complete bundle ID is likely to be com.organizationName.* and the suffix (exampleApp).
- 在浏览器中,转到 iTunes 连接。
- 添加您的新应用程序/编辑您现有的应用程序。
- 转到应用信息。
- 检查捆绑 ID 名称。
- 如果没有捆绑 ID,请确保创建一个。
- 我使用了通配符捆绑包 ID。这意味着,您的完整包 ID 可能是 com.organizationName.* 和后缀 (exampleApp)。
Xcode:
代码:
- Go to your Workspace / Project.
- Go to your project.
- Select the General Tab.
- Ensure the Bundle Identifier is the name you set in iTunes Connect. For example: com.organizationName.exampleApp
- 转到您的工作区/项目。
- 转到您的项目。
- 选择常规选项卡。
- 确保捆绑标识符是您在 iTunes Connect 中设置的名称。例如:com.organizationName.exampleApp
It seems you have to start the App Store submission process in iTunesConnect.
看来您必须在 iTunesConnect 中启动 App Store 提交过程。
回答by Leander
You have to create an application in Itunes Connect first, if you want to publish your app to the App Store.
如果您想将您的应用程序发布到 App Store,您必须首先在 Itunes Connect 中创建一个应用程序。
After you created the app in Itunes Connect, it will be stated as waiting for upload. Itunes Connect is now able to validate your app.
在 Itunes Connect 中创建应用程序后,它将被声明为等待上传。Itunes Connect 现在能够验证您的应用程序。
From Apple's documentation:
来自Apple 的文档:
Xcode uploads the archive to iTunes Connect and iTunes Connect runs validation tests. If a dialog appears stating that no application record can be found, click Done, create an app record in iTunes Connect, and repeat these steps.
Xcode 将档案上传到 iTunes Connect,然后 iTunes Connect 运行验证测试。如果出现一个对话框,指出找不到应用程序记录,请单击完成,在 iTunes Connect 中创建一个应用程序记录,然后重复这些步骤。
回答by bia
I came across the same error, except that the pointed bundle identifier was from a dependency I used in the main project which was odd.
我遇到了同样的错误,除了指向的包标识符来自我在主项目中使用的一个奇怪的依赖项。
Just in case someone else has the same issue, the solution is to add in Info.plist
of your main project: <key>CFBundlePackageType</key>
having APPL
value.
以防万一其他人有同样的问题,解决方案是添加Info.plist
您的主要项目: <key>CFBundlePackageType</key>
具有APPL
价值。