Monday, May 24, 2010

iPhone / iPad Universal Binary notes

Building a universal binary for iPhone / iPad seems a bit unintuitive. Started in XCode by selecting my target, then, in the menu, choose Project -> Upgrade Current Target for iPad…

After that, a build yielded the following warning:

"warning: building for deployment target '3.2' should omit the armv6 architecture."

Select the project, click Info, change the following values:

Base SDK: Optimized (armv6 armv7)
Build Active Architecture Only: NO
Targeted Device Family: iPhone/iPad
iPhone OS Deployment Target: iPhone OS 3.1.3

Should get rid of warning and build and debug on iPad.

When building for the iPhone, don't switch the build target back to 3.1.3. Keep using 3.2.

1 comment:

Anonymous said...

Thanks Dude

it worked for me

regards,
Prabhu Somasundaram
Bangalore,India
In AppStore:
QIA
QIAPsurvey