xcode 错误 ITMS-90542:“无效的 CFBundleSupportedPlatforms 值。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32726939/
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
ERROR ITMS-90542: "Invalid CFBundleSupportedPlatforms value."
提问by Hugo
I cannot submit my ipa of a iOS9 hotfix to the appstore, this is the errors I get on the Application loader:
我无法将 iOS9 修补程序的 ipa 提交到应用商店,这是我在应用程序加载器上遇到的错误:
ERROR ITMS-90542: "Invalid CFBundleSupportedPlatforms value. The key 'CFBundleSupportedPlatforms' in the Info.plist file in bundle 'Payload/PgapIos.app/GoogleMaps.bundle' contains an invalid value '( "iPhoneSimulator" )'. Consider removing the CFBundleSupportedPlatforms key from the Info.plist. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."
ERROR ITMS-90535: "Unexpected CFBundleExecutable Key. The bundle at 'Payload/PgapIos.app/GoogleMaps.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."
错误 ITMS-90542:“无效的 CFBundleSupportedPlatforms 值。捆绑包“Payload/PgapIos.app/GoogleMaps.bundle”中 Info.plist 文件中的键“CFBundleSupportedPlatforms”包含无效值“(“iPhoneSimulator”)”。考虑删除 CFBundleSupportedPlatforms来自 Info.plist 的密钥。如果此捆绑包是第三方框架的一部分,请考虑联系框架的开发人员以获取更新以解决此问题。”
错误 ITMS-90535:“意外的 CFBundleExecutable 键。‘Payload/PgapIos.app/GoogleMaps.bundle’中的包不包含可执行包。如果此包有意不包含可执行文件,请考虑从其信息中删除 CFBundleExecutable 键。 plist 并使用 BNDL 的 CFBundlePackageType。如果此捆绑包是第三方框架的一部分,请考虑联系框架的开发人员以获取更新以解决此问题。”
I have xcode 7.0 (7A220)
我有 xcode 7.0 (7A220)
采纳答案by Saifee
I was having the same issue, and editing the plist file of googlemaps framework was not working for me, I solved it by removing the framework and installing it with cocoapods. use this guide
我遇到了同样的问题,编辑 googlemaps 框架的 plist 文件对我不起作用,我通过删除框架并使用 cocoapods 安装来解决它。使用本指南
回答by Marcus
I just got these same warnings with the GoogleMaps bundle. I did what the error messages recommended: Going to the offending info.plist file (in XCode) and deleting the keys that the error messages recommended. This worked for me on my next attempt to upload my app to iTunesConnect
我刚刚在 GoogleMaps 包中收到了这些相同的警告。我做了错误消息建议的操作:转到有问题的 info.plist 文件(在 XCode 中)并删除错误消息建议的键。这在我下次尝试将我的应用程序上传到 iTunesConnect 时对我有用
回答by Anit Kumar
ERROR ITMS-90542: "Invalid CFBundleSupportedPlatforms value
错误 ITMS-90542:“无效的 CFBundleSupportedPlatforms 值
I am trying to upload a .ipa file to app store and I was getting the error 'CFBundleSupportedPlatforms' in the Info.plist iPhoneSimulator.
我正在尝试将 .ipa 文件上传到应用程序商店,但在 Info.plist iPhoneSimulator 中收到错误“CFBundleSupportedPlatforms”。
I have resolve this error. You need to update the GoogleMaps.bundle and GMSCoreResources.bundle info.plist.
我已经解决了这个错误。您需要更新 GoogleMaps.bundle 和 GMSCoreResources.bundle info.plist。
CFBundleSupportedPlatforms = { "iPhoneSimulator" },
CFBundleSupportedPlatforms = { "iPhoneSimulator" },
Replace with iPhoneSimulator to iPhoneOS
替换为 iPhoneSimulator 到 iPhoneOS
CFBundleSupportedPlatforms = { "iPhoneOS" },
CFBundleSupportedPlatforms = { "iPhoneOS" },
回答by user2623825
I had a ton of trouble actually finding the Info.plist. This is NOT your project's .plist file. Instead, search your entire Xcode project using shift+command+f and search for whatever is invalid, i.e. search for "CFBundleSupportedPlatforms" etc.
实际上,我在查找 Info.plist 时遇到了很多麻烦。这不是您项目的 .plist 文件。相反,使用 shift+command+f 搜索整个 Xcode 项目并搜索无效的内容,即搜索“CFBundleSupportedPlatforms”等。
回答by Adam Venturella
I also encountered this error. I happened to be using Carthage
to manage some framework dependencies. The solution for me was to ensure I was not including any of the dSYM
files that Carthage will generate for you into the app's resource bundle.
我也遇到了这个错误。我碰巧用来Carthage
管理一些框架依赖项。我的解决方案是确保我没有dSYM
将 Carthage 将为您生成的任何文件包含到应用程序的资源包中。
回答by redwud
It is a case issue in the items of
这是项目中的案例问题
CFBundleSupportedPlatforms
CFBundleSupportedPlatforms
Yo can change it to something like:
你可以把它改成这样:
iphonesimulator
iphone模拟器
Fixed my issue with this.
解决了我的问题。
回答by auspicious99
If you're installing from cocoapods, it may be that you are using an older version of the Google Maps pod. I was using 1.10.1 and got this error. I did a pod update GoogleMaps
and it went up to 2.2.0 ; and the problem went away.
如果您从 cocoapods 安装,则可能是您使用的是旧版本的 Google Maps pod。我正在使用 1.10.1 并收到此错误。我做了一个pod update GoogleMaps
,它上升到 2.2.0 ;问题就解决了。
回答by Sumitava Datta
I have resolved above error in my end Xcode 8. You need to update the GoogleMaps.bundle and GMSCoreResources.bundle info.plist.
我在我的最终 Xcode 8 中解决了上述错误。您需要更新 GoogleMaps.bundle 和 GMSCoreResources.bundle info.plist。
CFBundleSupportedPlatforms = { "iPhoneSimulator" },
CFBundleSupportedPlatforms = { "iPhoneSimulator" },
Replace with iPhoneSimulator to iPhoneOS
替换为 iPhoneSimulator 到 iPhoneOS
CFBundleSupportedPlatforms = { "iPhoneOS" }
CFBundleSupportedPlatforms = {“iPhoneOS”}
Thanks to @Anit kumar
感谢@Anit kumar
回答by Oshitha Wimalasuriya
CFBundleSupportedPlatforms Replace with iPhoneSimulator to iPhoneOS in both GoogleMap.info -> info.plist and GSMCoreResources.bundle -> info.plist
CFBundleSupportedPlatforms 在 GoogleMap.info -> info.plist 和 GSMCoreResources.bundle -> info.plist 中将 iPhoneSimulator 替换为 iPhoneOS
Also remove REMOVE the following key entirely in both GoogleMap.bundle -> info.plist and GSMCoreResources.bundle -> info.plist
同时在 GoogleMap.bundle -> info.plist 和 GSMCoreResources.bundle -> info.plist 中完全删除以下键