Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. It says "This build is invalid", with red exclamation mark. I checked my developer email and got this message

`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 `


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".

Added the required key Values

Info.plist

So i added the required key and value in 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

app store connect

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.

like image 232
Awais Fayyaz Avatar asked Feb 06 '19 11:02

Awais Fayyaz


1 Answers

Found the solution

Previous developer copy pasted some third party SDKs which included the value iPhoneSimulator for key CFBundleSupportedPlatforms in plist files

This was not visible in XCode(inside plist files of 3rd party SDK's). I had to go to my project directory (In Finder) and examine info.plist files of third part SDKs.

Two of the plistFiles in SDKs included value iPhoneSimulator along with iPhoneOS. This was causing the trouble.

Hope this helps someone.

like image 57
Awais Fayyaz Avatar answered Oct 14 '22 07:10

Awais Fayyaz