2011年12月7日 星期三

Build Titanium Project using XCode

1. In Titanium, build and run on iOS

2. a .xcodeproj will be created in Titanium workspace direction > Project > build > iphone

3. create distribution provision profile in developer.apple.com and download it using Xcode > preferences > View Details > referesh provision profile

4. In XCode, Select Project/Target, alter/double check the following if needed:
- Base SDK
- iOS Deployment Target (i.e. min. iOS requirement)
- Code Signing Identity (If prepare for App Store submission, assign distribution profile to 'release' setting)
- In "General" tab, make sure Identity is configured properly.

5. XCode > Product > Edit Scheme
select Build Configuration as "Release" and make sure Archive is checked.

6. Run it on iOS Device and then select Product > Archive

NOTE: 
- If code sign error arise make sure Identity is configured properly in General setting.
- If you found Product > Archive is grey out, check that in Edit Scheme, archive is enabled.
And app has been Run on iOS Device instead of Simulator.


7. [Make sure app status in iTunesConnect is ready.] Select Validate and Upload. that's it.

Troubleshoot:
When build to device, if it prompt saying no provisioned device attached, open XCode organizer, choose device and click "Development Device" to make it a development device.

沒有留言:

張貼留言