Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Packaging for iPhone is failing

I've gone through the Apple process via Safari and downloaded my certificate and provisioning profile. Apparently TiDeveloper is not finding needed files. When I try to build the app, I get a packaging error–build.log says:

IOError: No such file or directory …. Provisioning Profiles/<null>.mobileprovision

So, it's unaware of what my provisioning profile file should be named. In Developer, I don't get options to select a downloaded certificate, profile, etc. Those items are just links that open Firefox and prompt me to log on. I tried creating an app with a matching name in XCode and associated my provisioning profile. But that didn't seem to work either.

So, what are the missing steps? Sorry to be such a noob with this. I did try searching the docs, Q&As, helpdesk, etc.

— asked November 2nd 2010 by Tim Poulsen
  • iphone
  • packaging
1 Comment
  • Did you found a solution on it? I'm having the same trouble… XCode recognize the certificate and provision… yet Titanium does not seems to see it.

    — commented April 23rd 2011 by Luis Ortega

2 Answers

  • I followed the steps in http://developer.appcelerator.com/question/10721/problem-building-for-distribution and while it still fails, I'm perhaps closer. I got links to upload my provisioning profile, which I did. Now build.log reports that it's looking for a mobileprovision file named with what looks like my app's GUID. …

    — answered November 2nd 2010 by Tim Poulsen
  • Turns out XCode couldn't find my distribution certificate. The solution was to uninstall and reinstall the developer tools.

    1. Open a terminal window
    2. cd to /Library/Application Support/Titanium/mobilesdk/osk/(sdk_version/iphone
    3. Run python prereq.py package and you'll get output like the following:

    {"wwdr":true,"ipad":true,"sdks":["4.1","3.2"],"iphone_dev_name":["Your Name (1234567890)"],"iphone_dist_message":"Missing iPhone Distribution Certificate","wwdr_message":null,"itunes_message":null,"itunes":true,"iphone_dev_message": null,"iphone_dev":true,"iphone_dist":false,"itunes_version":"10.0"}

    Notice the "Missing iPhone Distribution Certificate" part. Even though I installed it (or at least I thought I did), XCode, and thus TiDeveloper couldn't find it.

    1. So, cd /Developer/Library
    2. Enter ./uninstall-devtools
    3. Re-install the iOS developer tools
    4. If you didn't before, double-click your distribution certificate to install it into the keychain.
    5. Drag & drop your provisioning profile file onto the Xcode icon (in /Developer/Applications) to install it.

    You should be set to go then.

    — answered November 3rd 2010 by Tim Poulsen
    1 Comment
    • I upgrade XCode to 4, and both recognize the certificate and provision… yet Titanium does not seems to see it. any suggestion?

      — commented April 23rd 2011 by Luis Ortega
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.