Can't upload in-app purchase hosted content

I'm having issues setting up hosted content for in-app purchases.


In Xcode, I create an IAP target, add content, and archive the target. When I try to validate the archive, I receive the following error:

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

However, IAPs aren't supposed to have an

Info.plist
– they have a
ContentInfo.plist
.


If I try to Submit to App Store, I get a different error:

ditto: Couldn't read PKZip signature Unable to extract archive. Please make sure /var/folders/3y/gg_xcqy16kz1d3s80zt_9jrr0000gn/T/XCodeDistPipeline.EKz/essentials.pkg is a valid zip or ipa archive.

Again, this doesn't make sense since as far as I can tell, IAP content is supposed to be delivered as a

pkg
file, whereas
ipa
is for apps.


I also tried to use Application Loader. To do this, I took the archive created above and exported it to disk as

essentials.pkg
. In Application Loader, I created a New In-App purchases template, selected my app, and added the
essentials.pkg
to the hosted content tab for the IAP. I then proceed to deliver the content, which goes through the whole validation process and uploading progress bar without incident. However, iTunes Connect still says "waiting for upload" for the IAP.


Does anyone know what could be wrong?


I am using Xcode Version 6.3.2 (6D2105)

Accepted Answer

I still have the same issues in Xcode, but I am now able to upload content via Application Loader (it takes about 10-15 min to show up in iTunes Connect).

I am having basically the exact same problem with xcode. When I try to load the iap packages through Application loader I get this error:


"The archive for In-App Purchase 'com.blabla.blablabla.bla' is invalid. The ContentInfo.plist does not contain the required 'ContentVersion' key."


... but the content version key is definitely there. I was literally able to do this with no trouble just a few days ago & this problem seems to have popped up on its own without any changes to the files or updates to the applications. I'm still unable to load hosted content.


Any insights would be greatly appreciated.

I didn't have that exact error (in my situation, it seems the IAP .pkg archive was incorrectly being validated as an app .ipa).

In the end, it just started working again for no apparent reason and I was able to upload content. I think there may be something flaky going on with Apple's servers...

My only advice right now is to wait it out and keep trying, sorry I can't be of more help :/

I'm running into this issue right now as well.

I am also facing this issue. As a work-around, I am uploading in-app hosted content using xcode 5.1.1

Can't upload in-app purchase hosted content
 
 
Q