Converting iPhone app to a Universal app in Xcode 4
Solution 1
{ Outdated / incorrect information removed. Moderators, I've asked to at least unmark my answer as accepted. Please clean this up. }
See Nick Lockwood's answer!
Solution 2
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:
Thanks to ObjectiveFlash for his comment which originally provided this solution.
Related videos on Youtube
iOS.Lover
Updated on April 01, 2020Comments
-
iOS.Lover about 4 years
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?
-
RanLearns almost 13 yearseven better (in Xcode 4 at least), just click on your app's target and then use the 'Devices' drag-down menu to choose Universal.
-
RanLearns almost 13 yearsYou helped me first by pointing this out before I found the simpler single-target method! So thank you. =)
-
Pangolin over 12 yearsThis is totally different in XCode 4.2, where could I find that?
-
Joshua Nozzi over 12 years@Nideo: I just checked this and it's exactly the same in 4.2 as in 4.1 and 4.0. Did you follow the directions precisely?
-
Fraggle over 11 yearsDown voting because of Nick Lockwoods answer. I hope he's right, but his is more in line with what I've seen online elsewhere. I'll know soon enough...
-
Mark Amery over 10 yearsJoshua, since you seem to be aware yourself that the other answer is better, may I suggest that (since you can't delete this yourself) you flag and ask a mod to delete this for you? I believe that since this has more than 3 upvotes, you'll keep your rep, in case that matters to you. The trouble is that since this is accepted it's still the most visible answer on the page, and some people may not see Nick Lockwood's answer.
-
Joshua Nozzi about 10 years@MarkAmery: Just saw this. Flagged for moderator attention.