I have an iPhone-only app which needs to become universal. I selected the target and changed Deployment Info > Devices from "iPhone" to "Universal". The blog post I found says Xcode asks you what to do. But it didn't ask anything. When I run the app on iPad it just crashes with no log in console.

The problem can be that my project doesn't use any xib files. Is there a resource that details what exactly you need to configure to make an app universal by hand?

有帮助吗?

解决方案

For making your App Universal:

  • In Targets -> General -> Deployment Info -> Set Devices to Universal
  • Now create iPad XIBs for the page that you have created.
  • Select xib -> Go to File's Owner -> Choose Custom class tab in inspector -> Set the class name for which you have created the iPad xib
  • Now select the view of that xib & go to inspector -> Set Referencing Outlets for the view

After following these steps while you run the Application into iPad than iPad screen will be opened without any crash.

Please note that you need to follow the steps every time when you create new iPad xib.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top