How to extend iOS app to tvOS

后端 未结 9 1804
别跟我提以往
别跟我提以往 2020-12-12 14:55

I have an iOS app that I need to extend to tvOS. All the information that I found are explaining how to start from scratch! Is there any way to extend my app to tvOS or I sh

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-12 15:40

    Took me a little while to find all the things needed to change but this list should cover it.

    1. click iOS target and duplicate
    2. change base sdk of new tvOS target to tvOS latest
    3. make copy of info.plist and have tvOS point to that one
    4. make all the tvOS icons and launch images
    5. set TARGETED_DEVICE_FAMILY to 3 for the tvOS build settings
    6. add any new tvOS specific versions of code e.g. without shouldAutorotate, prefersStatusBarHidden etc.

提交回复
热议问题