My App shows only a black screen on iPod

前端 未结 4 1843
渐次进展
渐次进展 2021-01-18 04:34

My app is in productions an works correctly in all devices except the iPod touch, which only shows a black screen when start the app. Does any body knows which could be the

4条回答
  •  青春惊慌失措
    2021-01-18 05:07

    As @ValentiGoClimb mentioned in the comment, Xcode has bad defaults when generating the Info.plist file; it only sets the Storyboard keys for iPads and iPhones, not iPod Touches.

    UIMainStoryboardFile~ipad
    iPadStoryboardFileName
    UIMainStoryboardFile~iphone
    iPhoneStoryboardFileName
    

    I haven't found a good way to edit this under the General Project settings screen in Xcode (which is why this problem most likely exists), so adding the key manually in the Info.plist file works well.

    UIMainStoryboardFile
    iPhoneStoryboardFileName
    

提交回复
热议问题