iOS: How to upload Apple Hosted content to In-app purchase in itunesconnect

允我心安 提交于 2019-12-06 14:14:09

问题


I have Non-Consumable Purchase and want to host it with Apple.

It like a book, that contains from images and manages with JSON. How can I upload it?


回答1:


What is not clear from Nirav's answer is that to get to the point where you have a valid package, you need to do two additional things after creating the In-App Purchase Content Project in Xcode (i.e. After Xcode -> New Project -> Other -> In-App Purchase)

Once you have added your content files, you must Firstly Archive the Project, then locate the In-App Purchase in the Organizer:

then,

EXPORT the project using the "Export as an Installer Package" option

This exports the archive as a PKG file into a folder on your Desktop. Inside the folder is a .pkg file - this is what you need to add as the "Hosted Package Content"

Apple's documentation on this is scant and not very clear that there is multiple steps in creating the PKG file




回答2:


With newest XCode (6.x) Application Loader you can manage all your in app purchases from within application loader apart from itunesconnect portal.

  • Open XCode.
  • Go to XCode Menu->Open Developer Tools->Application Loader.
  • Enter credentials for itunesconnect.
  • (See below image) Select New In-app purchase

  • On the next screen choose your app (it should have been created from itunesconnect portal.
  • (See below image) It will show various tabs. It will also show if any in-app purchases have been previously added.
  • Select Hosted Content tab. Then select the in-app purchase you want to upload your content.
  • Check the box 'Host Content with Apple'.
  • You can see the file chooser interface.
  • Follow the rest of the Application Loader workflow and you are done.



来源:https://stackoverflow.com/questions/31201810/ios-how-to-upload-apple-hosted-content-to-in-app-purchase-in-itunesconnect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!