简体   繁体   English

无效的包 - Info.plist 应该使用包含单个平台的数组指定 CFBundleSupportedPlatforms

[英]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 包括值iPhoneSimulatoriPhoneOS 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.

相关问题 无效的捆绑包 - 嵌套捆绑包没有CFBundleSupportedPlatforms中列出的正确平台Info.plist密钥 - Invalid Bundle - A nested bundle doesn't have the right platforms listed in CFBundleSupportedPlatforms Info.plist key 在 Info.plist CFBundleSupportedPlatforms 或 Mach-O LC_VERSION_MIN for modplug 中找不到平台系列 - Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or Mach-O LC_VERSION_MIN for modplug 在sqlite3的Info.plist CFBundleSupportedPlatforms或Mach-O LC_VERSION_MIN中找不到平台系列 - Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or Mach-O LC_VERSION_MIN for sqlite3 无法在Info.plist CFBundleSupportedPlatforms或Mach-O LC_VERSION_MIN中找到phantomjs的平台系列 - Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or Mach-O LC_VERSION_MIN for phantomjs 在 Info.plist 中指定 GPU - Specify GPU in Info.plist 错误Itms-90339:此捆绑包无效。 info.plist在应用程序包中包含无效密钥“CFBundleResourceSpecification” - Error Itms-90339: This bundle is invalid . The info.plist contains an invalid key 'CFBundleResourceSpecification’ in app bundle Adobe Air iOS无效捆绑包该捆绑包不支持info.plist中指定的最低版本操作系统 - Adobe Air iOS Invalid Bundle The bundle does not support the minimum version os specified in info.plist 错误ITMS-90363“无效的Info.plist密钥。 …包中的密钥“ CFBundleIcons〜iPad无效。” - ERROR ITMS-90363 “Invalid Info.plist key. The key 'CFBundleIcons~iPad in bundle … is invalid.” info.plist捆绑包显示名称本地化 - info.plist bundle display name localization 无法从包中加载 Info.plist - Failed to load Info.plist from bundle
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM