xcode 无法在 iTunes Store 中存档
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38749623/
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
Unable to archive in iTunes Store
提问by JeeGee
When trying to upload my app, I get the error: "You must supply a CFBundleIdentifier for this request". The identifiers (UTI format) in info.plist, "General Identity", iTunesConnect and App ID (Apple Developer) are all similar.
尝试上传我的应用程序时,出现错误:“您必须为此请求提供 CFBundleIdentifier”。info.plist 中的标识符(UTI 格式)、“General Identity”、iTunesConnect 和 App ID(Apple Developer)都是相似的。
When getting the CFBundleIdentifier in applicationdidFinishLaunchingWithOptions: I get the same result.
在 applicationdidFinishLaunchingWithOptions 中获取 CFBundleIdentifier 时:我得到相同的结果。
I have changed the project name, maybe it has something to do with that?
我改了项目名称,可能和那个有关?
Any suggestions? Thanks!
有什么建议?谢谢!
回答by tamtoum1987
I was getting this error when free space in my mac hard disk was low
当我的 mac 硬盘中的可用空间不足时,我收到此错误
回答by Sebastian_Berlin_82
I got the same error. In my case, the .ipa was put inside a folder. But, since i used the file-extension ".ipa" when Xcode asked me to where to put the output, the file was put inside a package. Once i exported the archive again and only used a name for the output everything worked fine.
我得到了同样的错误。就我而言,.ipa 被放在一个文件夹中。但是,由于我在 Xcode 询问我将输出放在哪里时使用了文件扩展名“.ipa”,因此该文件被放入了一个包中。一旦我再次导出存档并且只使用输出名称,一切正常。
回答by user7108158
Open your info.plist
and check to see if Bundle OS Type code
is null
. I had the same problem, and added APPL
to Bundle OS Type code
, and it was OK.
打开您的info.plist
并检查是否Bundle OS Type code
是null
。我遇到了同样的问题,并添加APPL
到Bundle OS Type code
,然后就可以了。
See here for a helpful image.
请参阅此处获取有用的图片。
回答by alexr101
Change Bundle OS Type codeand Bundle creator OS Type codeto APPL.
将Bundle OS Type code和Bundle creator OS Type code更改为 APPL。
It probably won't work. :-(
它可能行不通。:-(
Restart XCode. Now it works :-)
重新启动 XCode。现在它起作用了:-)
回答by Yedy
In my case I had two info.plistssitting silent in finder.
After deleting one I also had to change:
Bundle OS Type codefrom BNDLto APPL
No idea how the changes happend in the first place, but now it is working.
就我而言,我有两个 info.plist在 finder 中保持沉默。
删除一个后,我还必须更改:
Bundle OS Type codefrom BNDLto APPL 一开始
不知道更改是如何发生的,但现在它正在工作。
回答by Michal Gumny
In my case I was using someone's else certificate and provisioning profile to archive app, sending him IPA file and he was uploading it to Apple Store. It resulted in this same error, the fix was to send whole dictionary with "ExportOptions.plist", "DistributionSummary.plist", "Packaging.log" and IPA.
就我而言,我使用其他人的证书和配置文件来存档应用程序,向他发送 IPA 文件,然后他将其上传到 Apple Store。它导致了同样的错误,修复方法是发送带有“ExportOptions.plist”、“DistributionSummary.plist”、“Packaging.log”和 IPA 的整个字典。
回答by Mikayil Abdullayev
I had that exact problem with my react-native app built using expo. Believe it or not, just restarting the Application Loader fixed the problem. :)
我使用 expo 构建的 react-native 应用程序遇到了这个问题。信不信由你,只需重新启动应用程序加载器即可解决问题。:)
Mine was a react-native app built using expo.
我的是一个使用 expo 构建的 react-native 应用程序。
回答by Zyntx
I had this issue and resolved it the following manner. First make sure that this is not related to information in the info.plist - as outlined in the other answers - make sure that Bundle OS Type code
is set to APPL
. This was not the issue for me.
我遇到了这个问题并通过以下方式解决了它。首先确保这与 info.plist 中的信息无关 - 如其他答案所述 - 确保将Bundle OS Type code
其设置为APPL
. 这不是我的问题。
With Xcode 8 and later, Go to developper.apple.comand remove all iOS provisioning profiles andiOS certificates. Then in Xcode go to Preferences. Select your Apple ID. Click on view details. Right click on Provisioning profiles and either delete them directly or open in Finder and delete them.
对于 Xcode 8 及更高版本,请访问developer.apple.com并删除所有 iOS 配置文件和iOS 证书。然后在 Xcode 中转到首选项。选择您的 Apple ID。点击查看详情。右键单击配置文件并直接删除它们或在 Finder 中打开并删除它们。
Close Xcode. Re-open. In your project, in general, uncheck Automatically manage signing. Recheck it so that Xcode creates the new provisioning profile.
关闭 Xcode。重新打开。在您的项目中,通常取消选中自动管理签名。重新检查它,以便 Xcode 创建新的配置文件。
Check the signing and make sure you are using newly created profile, as shown here:
检查签名并确保您使用的是新创建的配置文件,如下所示:
Good to go!
好去!
回答by Mohamed Emad Hegab
For Me It was all about checking Requires Full screen that option for iPad mainly .. and the error happen cause you may checked 3 Orientations for all devices .. but the iPad in multi-tasking is requiring the whole 4 orientations..
对我来说,主要是检查 iPad 的需要全屏选项.. 错误的发生是因为您可能检查了所有设备的 3 个方向.. 但多任务处理中的 iPad 需要整个 4 个方向..