Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After Upgrading, XCode gives "The Package Does Not Contain an Info.plist" error when Archiving

Tags:

xcode

ios

iphone

I have an iOS 7 app in the app store which has many in-app purchases. The in-app purchases are simply new .json data structures that I have hosted with Apple. The IAPs used to submit perfectly, but I just upgraded to XCode 6.1 when I upgraded my machine from Mountain Lion to Yosemite. Now whenever I archive a new IAP package or rearchive an old one that submitted properly last week, I get:

"Unable to validate your application. The package does not contain an Info.plist".

When I click on my target (in the Navigator pane), Build Settings | Packaging shows:

  • Info.plist File as "north_carolina.pittsburgh/ContentInfo.plist". (Debug and Release subheadings show the same information).
  • Product Name is "north_carolina.pittsburgh".

The ContentInfo.plist file is in the Supporting Files folder of my target (in the Navigator pane). In it I have keys for

  • ContentVersion (value set to 2.0)
  • IAPProductIdentifier
  • Bundle versions string, short (value set to 2.0)

Finally, in the Products folder of the Navigator, I have north_carolina.pittsburgh next to the red target icon, and the words are in red.

How can I get this archive to validate properly?

like image 518
dmccall Avatar asked Oct 29 '14 12:10

dmccall


People also ask

How do I create a plist in Xcode?

Right click on the folder you want to add it to and choose "New file…" This will bring up a blank file with columns for Key, Type and Value. Choose any of the presented options, you'll be overwriting it anyway. Now change the Key to "Apple".

What is a plist Xcode?

A property list, commonly abbreviated as plist, is an XML file that contains basic key-value data. You can use a plist in your iOS apps as a simple key-value data store.


2 Answers

The error message is incorrect. What it's really erroring out on is that your "version" and "bundle" number strings probably aren't both set. Make sure you specify both in the Identity section. enter image description here

like image 180
adjwilli Avatar answered Sep 23 '22 02:09

adjwilli


This seems to be XCode 6.1 bug. However you can actually ignore the error and proceed to export as an installer package (.pkg file will be created). Use this .pkg in the Application Loader.

like image 21
mpprdev Avatar answered Sep 25 '22 02:09

mpprdev