[英]Invalid Bundle - Info.plist should specify CFBundleSupportedPlatforms with an array containing a single platform
I am trying to upload an archive to app store connect.我正在尝试将存档上传到应用商店连接。 Archive uploads successfully.
存档上传成功。 When i go to app store connect and see it in activity section.
当我 go 到应用商店连接并在活动部分看到它。 It says " This build is invalid ", with red exclamation mark.
它说“此构建无效”,带有红色感叹号。 I checked my developer email and got this message
我检查了我的开发人员 email 并收到了这条消息
`We identified one or more issues with a recent delivery for your app, "App name".
`我们发现您最近交付的应用程序“应用程序名称”存在一个或多个问题。 Please correct the following issues, then upload again.
请更正以下问题,然后重新上传。
Invalid Bundle - Info.plist should specify CFBundleSupportedPlatforms with an array containing a single platform `
无效的包 - Info.plist 应该使用包含单个平台的数组指定 CFBundleSupportedPlatforms `
I searched for solution and found out that my info.plist should contain a key "CFBundleSupportedPlatforms" with an array value having a single entry "iPhoneOS".我搜索了解决方案,发现我的 info.plist 应该包含一个键“CFBundleSupportedPlatforms”,其数组值具有一个条目“iPhoneOS”。
Added the required key Values添加了所需的键值
So i added the required key and value in info.plist.所以我在 info.plist 中添加了所需的键和值。 I made the archive again and submitted.
我再次存档并提交。 But i am facing the same issue AGAIN .
但我又面临同样的问题。 red exclamation mark appears in 'Activity' Section and when i click on this mark, it says This build is invalid
红色感叹号出现在“活动”部分,当我点击这个标记时,它说这个版本无效
I searched for a solution.我搜索了一个解决方案。 I found answers involving nested bundles containing simulator platform.
我找到了涉及包含模拟器平台的嵌套包的答案。 But these are not relevant in my case
但这些与我的情况无关
Thanks for helping me.谢谢你帮助我。
Found the solution
找到解决方案
Previous developer copy pasted some third party SDKs which included the value iPhoneSimulator
for key
CFBundleSupportedPlatforms in plist files以前的开发人员复制粘贴了一些第三方 SDK,其中包括 plist 文件中
key
CFBundleSupportedPlatforms 的iPhoneSimulator
值
This was not visible in XCode(inside plist files of 3rd party SDK's).这在 XCode 中不可见(在 3rd 方 SDK 的 plist 文件中)。 I had to go to my project directory (In Finder) and examine info.plist files of third part SDKs.
我必须转到我的项目目录(在 Finder 中)并检查第三方 SDK 的 info.plist 文件。
Two of the plistFiles in SDKs included value iPhoneSimulator
along with iPhoneOS
. SDK 中的两个 plistFiles 包括值
iPhoneSimulator
和iPhoneOS
。 This was causing the trouble.这造成了麻烦。
Hope this helps someone.希望这可以帮助某人。
the best case for me: Go To Build Setting -> Architectures -> Supported Platforms.对我来说最好的情况:Go 构建设置 -> 架构 -> 支持的平台。 Select Value iOS Make it Other and remove iphonesimulator from and make just iphoneos and if you have target Like (Content - Services) Notification make the same: Go To Build Setting -> Architectures -> Supported Platforms.
Select 值 iOS 使其成为其他并从中删除 iphonesimulator 并仅制作 iphoneos 如果您有目标 Like(内容 - 服务)通知则制作相同的:Go 构建设置 - >架构 - >支持的平台。 Select Value iOS Make it Other and remove iphonesimulator from and make just iphoneos
Select 值 iOS 设为其他并从中删除 iphonesimulator 并只制作 iphoneos
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.