仅在 iPhone 上测试通用应用程序

发布于 2024-12-27 13:27:28 字数 371 浏览 3 评论 0原文

我正在开发一个通用的ios应用程序,iphone版本已经接近完成,大约是ipad的50%。不过我需要开始测试 iPhone 版本。因此我只将项目更改为 iphone 目标。但是,当应用程序位于 ipad 上时,ipad 版本的 nib 文件会加载到 iPhone 模拟器中。因此,您只能在 iPhone 模拟器中看到 iPad 屏幕的一小部分。一种解决方案是删除对 ipad nib 文件的引用,但我想避免这种方法。

有人有建议吗?

问候

编辑:问题是我是否希望人们能够在 ipad 上测试 iphone 版本(有些人只有 ipad 而不是 iphone)。当在ipad上运行iphone模拟器时,它会加载错误的nib文件。这些是为实际的 ipad 而不是 iphone 设计的。

I am developing a universal ios app and the iphone version is nearly done and about 50% of the ipad. However I need to get started testing the iphone version. Therefore I changed the project only to be a iphone target. However when the app is on the ipad, the nib files for the ipad version is loaded in the iphone simulator. Therefore you only see a fraction of the ipad screen in the iphone simulator. One solution is to remove the references to the ipad nib files, however I would like to avoid this approach.

Anyone one with suggestions?

Regards

EDIT: The problem is if I want people to be able to test the iphone version on a ipad(some people only have an ipad not an iphone). When running the iphone simulator on the ipad, it would load the wrong nibfiles. Those intended for the actual ipad and not the iphone.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

星星的軌跡 2025-01-03 13:27:28

您不想“仅将项目更改为 iphone 目标”。将其改回来,然后在设备上构建并运行(iPhone 或 iPad,具体取决于您插入的设备)。

顺便说一句,将来我强烈建议您尽早测试并经常测试 - 例如每天在设备上进行测试。

You don't want to "change the project only to be a iphone target". Change it back and just build and run on the device (iphone or ipad depending upon which one you have plugged in).

Btw, in future I STRONGLY recommend that you test early and test often - e.g. test on devices every day.

Oo萌小芽oO 2025-01-03 13:27:28

好吧,最终得到了我不想做的解决方案:)我删除了用于 ipad 的 nib 文件,并解决了问题。测试结束后,我必须添加 ipad nib 文件才能继续工作。

Okay, it ended up with the solution I did not want to do :) I removed the nib files intended for the ipad and it removed the issue. After the test I will have to add the ipad nib files to continue working.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文