2009-10-30

how to get an Xcode build to run on an iPhone

how to get an Xcode build to run on an iPhone connected to your Mac:

set the SDK to the device
Project / Set Active SDK / Device - iPhone OS 3.0 (or whatever's appropriate)

set the build to Release
Project / Set Active Build Configuration / Release

clean all targets
Build / Clean All Targets

set Code Signing Identity to your profile
click on your target, then the info button, then the Build tab
under Code Signing Identity, next to Any iPhone OS Device, pick the certificate for your platform

set the Bundle identifier in Info.plist
change com.yourcompany to whatever you used in your AppID


if you're using a Distribution profile instead of a Development profile, add a dist.plist file to your project and include it as the Code Signing Entity

  • File / New File... Entitlements, save it as dist.plist

  • clear the get-task-allow checkbox

  • click the target then the Info button, under Code Signing Entitlements enter dist.plist

No comments:

Post a Comment