Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种快速的方法可以在 Xcode 中强制通用应用程序在 iPad 上的 iPhone 版本中运行?“快速方式”是指一种不涉及编码(或过多编码)的方式。例如,在我的目标应用程序的摘要页面中,有一个关于设备的选择按钮;我尝试将其设置为 iPhone(尽管我的应用程序是通用的),但是在 iPad 上我的应用程序仍然启动 iPad 版本。
任何帮助表示赞赏。
干杯。
在构建设置中更改目标设备系列(检查屏幕截图)。
我最终通过在我的应用程序的 .plist 文件中删除对 iPad 设置的任何引用并声明该应用程序仅适用于 iPhone 设备来做到这一点。几乎是 Jonas 和 Brian 提到的,但扩展到所有参考资料。
删除 Info.plist 中指向 iPad 界面的条目。我认为它NSMainNibFile~ipad或类似的东西。
NSMainNibFile~ipad