xcode 使用 Application Loader 上传时,在包中找不到 .app 包

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22860595/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:50:59  来源:igfitidea点击:

No .app bundle found in the package, while uploading with Application Loader

iosxcodebundle

提问by SteBra

I know there are already several questions on the subject, but I am really desperate. I don't know what else to do than to look for an advice here.

我知道已经有几个关于这个主题的问题,但我真的很绝望。除了在这里寻求建议之外,我不知道还能做什么。

So, I have an app ready to be uploaded.

所以,我有一个可以上传的应用程序。

I have checked all the pre-steps, before trying to upload:

在尝试上传之前,我已经检查了所有预先步骤:

  • Bundle ID matches in info.plist, iTunesConnect, Apple developer, Provisioning profile
  • Game works perfectly when I run it on the device, in app purchase works with a test user, and not a single issue appears
  • 捆绑 ID 在 info.plist、iTunesConnect、Apple 开发者、Provisioning 配置文件中匹配
  • 当我在设备上运行游戏时,游戏运行良好,应用程序内购买适用于测试用户,并且没有出现任何问题

Here are some screenshots with some info:

以下是一些包含一些信息的屏幕截图:

enter image description hereenter image description hereenter image description hereenter image description here

在此处输入图片说明在此处输入图片说明在此处输入图片说明在此处输入图片说明

What I have noticed is that there isn't any Provisioning Profile selected: No Provisioning profile selected

我注意到的是,没有选择任何配置文件: No Provisioning profile selected

Yet, when I select the provisioning profile I made earlier, I get this error. When I clock "Fix" it changes it back to none provisioning profile selected. I don't know if that's the cause of the trouble enter image description here

然而,当我选择之前创建的配置文件时,我收到此错误。当我计时“修复”时,它会将其更改回未选择配置文件。不知道是不是这个问题 enter image description here

All in all, this is the Error I get: enter image description here

总而言之,这是我得到的错误: enter image description here

This is my first time that I'm uploading an app with in app purchase. So I might missed some obvious step. I really hope that somebody will see the problem here, because I've been trying to fight this for 2 days now :(

这是我第一次通过应用内购买上传应用。所以我可能错过了一些明显的步骤。我真的希望有人会在这里看到这个问题,因为我一直在努力解决这个问题 2 天了 :(

采纳答案by Jasarien

When you see "iPhone Developer" in the code signing identity, that means Xcode will automatically select a matching identity to sign the app (It doesn't mean that no profile is selected).

当您在代码签名标识中看到“iPhone Developer”时,这意味着 Xcode 将自动选择匹配的身份来为应用程序签名(这并不意味着没有选择任何配置文件)。

From what I can see it looks like "iPhone Developer" is chosen for both Debug and Release configurations which will likely cause a problem because you cannot submit a Developer signed app to the App Store, it must be signed with a Distribution certificate and Distribution profile.

从我所见,调试和发布配置都选择了“iPhone 开发人员”,这可能会导致问题,因为您无法将开发人员签名的应用程序提交到 App Store,它必须使用分发证书和分发配置文件进行签名.

You will need to ensure that you have created a Distribution Certificate and profile to sign your app with before archiving it and submitting it via Xcode.

在归档应用程序并通过 Xcode 提交应用程序之前,您需要确保已创建分发证书和配置文件以对应用程序进行签名。

I would recommend you read up on how app store distribution works from the Apple documentation here:

我建议您从此处的 Apple 文档中了解应用商店分发的工作原理:

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/Introduction/Introduction.html

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/Introduction/Introduction.html

Then if you still are having trouble, read the trouble shooting guide from the docs here:

然后,如果您仍然遇到问题,请阅读此处文档中的故障排除指南:

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/Troubleshooting/Troubleshooting.html

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/Troubleshooting/Troubleshooting.html

回答by Tomas Andersen

I have had a similar problem. We received an APP from an external provider and re-signed the APP ourselves using our own certificate and provisioning profile. When uploading the APP with Application Loader I received the error ITMS-90167: No .app bundles found in the package.

我遇到了类似的问题。我们从外部提供商处收到了一个 APP,并使用我们自己的证书和配置文件自己重新签署了该 APP。使用 Application Loader 上传 APP 时,我收到错误 ITMS-90167: No .app bundles found in the package。

I have sierra installed on my Mac and I am using XCode 8.0 but had an old version of Application Loader (3.0) that was installed separately. Using this version of Application Loader I got the message. If I instead used the Application Loader that is part of Xcode (from the XCode/Open Developer Tool menu), ie version 3.6 everything worked out great and the ipa file was successfully uploaded to ITunesConnect.

我在 Mac 上安装了 sierra 并且我使用的是 XCode 8.0,但有一个单独安装的旧版本的 Application Loader (3.0)。使用此版本的 Application Loader,我收到了消息。如果我改为使用作为 Xcode 一部分的应用程序加载器(来自 XCode/Open Developer Tool 菜单),即 3.6 版一切正常,并且 ipa 文件已成功上传到 ITunesConnect。