简体   繁体   English

如何才能将我的Universal应用程序还原到iPhone?

[英]How can I revert my Universal app back to iPhone only?

In a silly mistake, I ran the "Upgrade current Target for iPad" assistant in Xcode. 在一个愚蠢的错误中,我在Xcode中运行了“升级当前iPad目标”助手。 I'd like to target the iPad some time with my app, but right now, I don't have the time and just want to ship it. 我想用我的应用程序将iPad定位一段时间,但是现在,我没有时间只想发货。 Is there an easy way to remove the iPad specific changes from my app? 有没有一种简单的方法可以从我的应用程序中删除iPad特定的更改?

Specifically, what I'm after is, I want to be able to run the app in the little "iPhone" window on the iPad (the one that lets you blow up the size of the app by pixel doubling). 具体来说,我想要的是,我希望能够在iPad上的小“iPhone”窗口中运行应用程序(可以让你通过像素加倍来炸毁应用程序的大小)。 Right now, my view just hangs in there somewhere and looks weird. 现在,我的视图只是挂在某处,看起来很奇怪。

Any help? 有帮助吗?

I found help in this question: Submit an universal app as iPad only app to Apple 我在这个问题上找到了帮助:将一个通用应用程序作为iPad专用应用程序提交给Apple

The solution is 解决方案是

  • Open the Target configuration: Project -> Edit Active Target 打开目标配置:项目 - >编辑活动目标
  • In build settings, set 在构建设置中,设置
    • Architectures: Standard (armv6( 架构:标准(armv6(
    • Build active architecture only: YES 仅构建活动体系结构:是
    • Targeted Device Family: iPhone 目标设备系列:iPhone

我不知道如何随意做,但你可以创建另一个项目(然后制作副本)然后运行相同的“升级当前目标iPad”并寻找差异。

Does Upgrade for iPad create a new snapshot. Upgrade for iPad是否会创建新快照。 I thought mine created one before I did it automatically, but I'm not positive. 在我自动完成之前,我以为我创造了一个,但我并不积极。 If so, just revert back to the snapshot 如果是这样,只需恢复快照即可

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iPhone - 如何将仅限iPhone的应用程序转换为通用应用程序? - iPhone - How to transform an iPhone only app to universal app? 将我的免费应用程序通用升级到仅iPhone - Upgrade My free app form Universal to iPhone only 仅在iPhone上测试通用应用程序 - Testing universal app on iphone only 仅设置通用应用iPhone - Set universal app iPhone only iPhone/iPad - 只将通用打入 iPhone 应用程序 - iPhone/iPad - Breaking universal into iPhone app only 如何将通用iOS应用程序转换为独立的iPhone应用程序? - How can I convert a Universal iOS app to a stand-alone iPhone app? iPhone / iPad:如何在通用应用程序中设置不同的初始屏幕? - iPhone/iPad :How do i set different splash screen in my universal app? 是否可以在不使用XCode创建新项目的情况下将通用应用程序更改为仅限iPad的应用程序? - Can I change my Universal App to an iPad-only app without creating a new project in XCode? 如何在Xcode 5中手动将仅限iPhone的应用程序转换为Universal? - How to manually convert an iPhone-only app to Universal in Xcode 5? 如何在iPhone应用程序中拥有2个leftBarButtonItems,并且1是默认的后退按钮? - How can I have 2 leftBarButtonItems in iPhone app, and 1 be the default back button?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM