1

I have got an iPhone and an iPad app - both are separate fully working XCode projects. What I want to do is make a universal binary app out of these two. how can I do it?

Thank you!

Knodel
  • 4,359
  • 8
  • 42
  • 66

1 Answers1

3

If that projects using the same code it would be quite easy: just create new project, add sources and set Targeted device family to iPhone/iPad. However if you have separate code for each device, my congratulations, you'll have a big pain in the butt: you have to merge that sources and check for the device at runtime. Everything else is like in the first case.

Max
  • 16,679
  • 4
  • 44
  • 57
  • Yes, unfortunately, the code is different and the xibs, too. What to do with them (the xibs)? – Knodel Feb 26 '11 at 22:27
  • You'll have to determine at runtime what device you are running and choose appropriate xib. – Max Feb 26 '11 at 22:37
  • Just try to merge all your view controllers: ideally if you've designed your app correctly they should not differ (that's the power of MVC pattern). – Max Feb 26 '11 at 22:39
  • So I have to do that in code, not just rename the files and add "-iPad" or something? – Knodel Feb 26 '11 at 22:39
  • Yep. There are no documented suggestions about "-iPad". – Max Feb 26 '11 at 22:41
  • =) it will encourage you to spend more time for architecture design in the future – Max Feb 26 '11 at 22:44