iOS storyboards do not support target device type "watch"

I am using Xcode 7.2, WatchOS 2.1. I have below problem

 iOS storyboards do not support target device type "watch".

How can I resolve this?

1

2 Answers

In addition to target memberships, and especially when working with a single target that supports multiple platforms (ex. iOS and tvOS), you can more-deeply customize the build by clicking on the project in the sidebar then going into the target, selecting "Build Phases" and then using the "Filters" column.

By default, files are listed as "Always Used", but you can limit to specific platforms as needed in this way, even as part of a single target.

It would be nice if these same settings were exposed in the inspector as well since this feels pretty hidden, but this is how it is as of Xcode 14.1 at least.

1

I just crossed the same problem. I did:

  1. Click on the warning
  2. On the right side select the "File Inspector"
  3. Go down to the "Target Membership"
  4. Unselect the "main app"

This worked for me. Cheers.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like