简体   繁体   English

Swift 应用程序在 iPad 上返回空白屏幕?

[英]Swift app returning a blank screen on ipads?

I tried uploading my first app yesterday (swiftui) and now got back an error saying that my app creates a blank screen on ipad.我昨天尝试上传我的第一个应用程序 (swiftui),现在返回一个错误,说我的应用程序在 ipad 上创建了一个空白屏幕。 I didnt intend the app to be used on ipad but now when i checked it does indeed display a white blank screen.我不打算在 ipad 上使用该应用程序,但现在当我检查它确实显示一个白色的空白屏幕。 However it works on any iphone model.但是它适用于任何 iphone 型号。

How do i fix this?我该如何解决? Or is there a way to only launch the app for iphones?或者有没有办法只为iphone启动应用程序?

Go to Target -> General -> Deployment Info -> Uncheck iPad转到目标 -> 常规 -> 部署信息 -> 取消选中 iPad

在此处输入图片说明

This will still run the app on iPad, but just like it runs in iPhone(same frame.)这仍将在 iPad 上运行该应用程序,但就像它在 iPhone(同一帧)中运行一样。

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

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