简体   繁体   English

作为iPhone在iPad上部署

[英]Deploy in an iPad as iPhone

I am developing one application for iPad and iPhone. 我正在为iPad和iPhone开发一个应用程序。 The problem is that I only have one iPad. 问题是我只有一台iPad。 I need to develop in a physical device cause I have some libraries inside the project that only works in device. 我需要在物理设备中进行开发,因为我在项目内部有一些只能在设备中使用的库。 Are there any way to deploy in my iPad as an iPhone to check if the application code is working fine? 有什么方法可以将iPad部署为iPhone,以检查应用程序代码是否正常运行? I have a jailbroken device. 我有一个越狱的设备。

Thanks!! 谢谢!!

In Xcode select your target and then the Summary tab. 在Xcode中,选择目标,然后选择“摘要”选项卡。 Change the Devices value from Universal to iPhone. 将“设备”值从“通用”更改为“ iPhone”。 Now build and run your app on your iPad. 现在,在iPad上构建并运行您的应用程序。 It will run in iPhone compatibility mode on the iPad. 它将在iPad上以iPhone兼容模式运行。

Don't forget to put that option back to Universal before shipping the app to Apple. 在将应用程序交付给Apple之前,请不要忘记将该选项放回Universal。

One limitation is you can't test to see if your app works on the 4" devices. The iPhone compatibility mode only works in 3.5" mode. 一个限制是您无法测试您的应用程序是否在4英寸设备上运行。iPhone兼容模式仅在3.5英寸模式下运行。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM