ITMSTransporter: How to Download Content in In-App Purchase?

I am using ITMSTransporter and am trying to automate my app purchase management.

I have read all the documentation about ITMSTransporter: search mode, check mode, download mode. But I still have a problem buying the app.

I have an in-app purchase and need to download content like .json, .jpg, etc. I can do it with Application Loader (for example) , but I want to use Transporter. Well, how can I load the .pkg file with the .itmps file?

I think I need to change the metadata.xml file in the .itmps file, but I'm not sure. Could you please give me more information about downloading content in my in-app purchases?

Thank.

+3


source to share


1 answer


As with Xcode 9.1 Beta, you can upload app content to your app from the Xcodes Organizer window and create / update metadata via iTunes Connect as before.

If you want to use ITMSTransporter, first download the .itmps metadata file associated with your application and then edit it as needed (including dragging and dropping any .pkg files into the .itmps file, which is indeed a directory that you can ctrl-click and choosing "show contents").

After editing, you use the command line to check and load. For example, the workflow for updating existing in-app purchase content would be:

Step 1: Get existing metadata for in-app purchase:

iTMSTransporter -m lookupMetadata -u "$ITC_USERNAME" -p "$ITC_PASSWORD" -destination "$DOWNLOAD_PATH" -vendor_id "$ITC_PRODUCT_PARENT_ID" -subitemids "$ITC_PRODUCT_ID" -subitemtype InAppPurchase

      

You can omit the -subitemids and -subitemtype parameters if you just want to load metadata for the entire application and all its IAPs.

This creates a local .itsmp, inside which you will find "metadata.xml".

You can edit this metadata as needed and even add / remove entire sections. Refer to the ITMSTransporter tutorial to learn how to edit XML in detail.



Step 2: update your local copy of the metadata

  • Drag and drop the new IAP content you should have zipped into a .pkg file using Xcode into the .itmsp directory generated by the previous step.

  • Update the checksum of the size and md5 in the area of ​​the XML file that carries this information. The md5 checksum for your .pkg can be obtained by opening a terminal and typing "md5", then dragging the .pkg into the terminal and hitting enter.

Step 3. Verifying the .itmsp package

iTMSTransporter -m verify -u "$ITC_USERNAME" -p "$ITC_PASSWORD" -f "$ITMSP_PATH"

      

Step 4: Download (assuming verification was successful)

iTMSTransporter -m upload -u "$ITC_USERNAME" -p "$ITC_PASSWORD" -f "$ITMSP_PATH"

      

This workflow was taken / adapted from the following website, which is extremely helpful and contains other necessary information: http://www.cyrilchandelier.com/having-fun-with-itmstransporter

0


source







All Articles