首页 > 解决方案 > 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. I didnt intend the app to be used on ipad but now when i checked it does indeed display a white blank screen. However it works on any iphone model.

How do i fix this? Or is there a way to only launch the app for iphones?

标签: iosswiftiphonexcodeswiftui

解决方案


Go to Target -> General -> Deployment Info -> Uncheck iPad

enter image description here

This will still run the app on iPad, but just like it runs in iPhone(same frame.)


推荐阅读