简体   繁体   中英

Can I add a WatchKit Extension to a Universal app?

I have an app in the App Store. It is for iPhone and iPad (Universal). Can I add a WatchKit Extension in the next version or do I have to remove iPad from the targets in order to do that? I'm asking because iPad does not support connecting an Apple Watch.

Yes, you can add a WatchKit extension to a universal app. As a general rule, if you add an extension to an app that a device cannot support, it simply won't appear there.

In your existing App in Xcode in the Editor menu select Add Target...

在此处输入图片说明

from there select watchOS and WatchKit App .

在此处输入图片说明

Name the WatchKit Extension, and you should be all set.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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