简体   繁体   中英

How to choose WatchKit App's parent target?

I have an iOS application with several targets, which runs in a really different way on each of them. I added a watchkit app to it, but haven't found a way to specify which target of my app should be the parent . Have any of you found a way? Or is it something to ask Apple about?

You can definitely do this. You can set the target when you create the WatchKit App. Here are the steps:

  • Set up all your targets in your project (I believe you have this completed)
  • Select the + under targets and create a new WatchKit App
  • The next options page let's you pick from a bunch of options to set up the WatchKit App target
  • Under Embed in Application , choose the target you want to embed the WatchKit App in

I just confirmed this on Xcode 6.2 Beta 5.

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