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.
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. …
-
Turns out XCode couldn't find my distribution certificate. The solution was to uninstall and reinstall the developer tools.
- Open a terminal window
- cd to /Library/Application Support/Titanium/mobilesdk/osk/(sdk_version/iphone
- 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.
- So, cd /Developer/Library
- Enter ./uninstall-devtools
- Re-install the iOS developer tools
- If you didn't before, double-click your distribution certificate to install it into the keychain.
- Drag & drop your provisioning profile file onto the Xcode icon (in /Developer/Applications) to install it.
You should be set to go then.