How to extend iOS app to tvOS

后端 未结 9 1807
别跟我提以往
别跟我提以往 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:23

    In Xcode 7.1 (which introduces tvOS SDK) you can add a tvOS target as any other (File -> New -> Target... -> tvOS -> ...) and it supports both Objective-C and Swift, so yes - it's possible to share code between your iOS and tvOS app, you just need to check your source target membership and enable it on your tvOS target. To extend the purchases across iOS and tvOS app we should use Universal Purchases.

提交回复
热议问题