Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
409 views
in Technique[技术] by (71.8m points)

objective c - Converting iPhone app to a Universal app in Xcode 4

I am trying to upgrade my existing iPhone app project to an Universal app but I can not find any option in Xcode 4 to do so. Where is it?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The accepted answer is wrong. Creating a new target is how you create a separate iPad app from an iPhone app (i.e. a project that can be compiled into either an iPad or iPhone app), it is not how you convert an iPhone app to a single universal app that will run on iPhone or iPad.

All you actually need to do is switch the Device dropdown in the target summary tab from iPhone to Universal:

Image showing above instructions

Thanks to ObjectiveFlash for his comment which originally provided this solution.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...