Titanium: 3.1.0 Apple iTunes Store and Android App Store Distribution Bug Workaround


I am using Titanium build: 3.1.0.201304151600

Distribute – Apple iTunes Store

Bug:
Bug is reported here: https://jira.appcelerator.org/browse/TISTUD-4311
they said, its already fixed in the release candidate version

Apple iTunes Store distribution begets Ad Hoc distribution file
Xcode won’t get open automatically after the build process
Though popup showing: Apple app store distribution completed successfully

Console output: 
[INFO] :   Build type: production
[INFO] :   Building for target: dist-adhoc

Workaround:
1. Remove the directory WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches to clear the existing launch configurations

2. Goto Run Configurations and Delete all particular application related subsections of Titanium Apple iTunes Distribution
and
Delete all particular application related subsections of Titanium Apple Ad Hoc/Enterprise Distribution

3. clean and Restart Titanium Studio

4. Goto Run Configurations and Select Titanium Apple iTunes Distribution
click New Launch Configuration
Provide necessary information on Right pane (Distribution Certificate, Keychain, provisioning profile, sdk version)
click Run

Expected Result: After a while Xcode should open automatically
Next process should be familiar to you

Distribute – Android App Store

Bug:
Android play store showing a package signing error
or
downloaded android application showing: Packaging is not valid, or package sign error

The problem
Titanium can successfully create the KeyStore file and Key Alias
but due to bug, it can’t sign the apk properly ..
unfortunately, you can’t see the error log in the console

Workaround
I guess you have a valid keystore file, keystore Password and Keystore Alias
If you don’t then you may make it with Titanium Distribution Dialog .. it works fine

clean and run the app in emulator 

run the command: 

cd APP_DIRECTORY/build/android/bin 

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore KEYSTORE_FILE_LOCATION app-unsigned.apk KEYSTORE_ALIAS

jarsigner -verify app-unsigned.apk 

zipalign -v 4 app-unsigned.apk PRODUCTION.apk
Advertisements

One thought on “Titanium: 3.1.0 Apple iTunes Store and Android App Store Distribution Bug Workaround

  1. Thank you so much for the jarsign code – I was really stuck with this problem and now I’ve been able to upload my first app to the Play Store! Very much appreciated 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s