Tracy Jc
Tracy Jc

Reputation: 71

target specifies product type 'com.apple.product-type.watchkit2-extension', but there's no such product type for the 'iphoneos' platform

I already have a Watch app written for iOS 8.2, I want to configure a Watch app for watch OS 2 and deliver both versions of mine Watch app inside the same iOS app. So I create a new Watch App Target for WatchOS2 with Xcode7.0, but it can not work. How to do? Thanks!

Upvotes: 2

Views: 2778

Answers (3)

spinyH
spinyH

Reputation: 51

When you make a watch target, you need to go to Build Settings for both the Watch and the Watch Extension and change Architectures/Supported Platforms from 'iOS' to 'watchOS'.

Upvotes: 1

johndpope
johndpope

Reputation: 5257

Make sure in build settings > under Base SDK > this is set to latest watchOS.

Upvotes: 1

Felix
Felix

Reputation: 751

The WatchOs2 extension should be running on the Watch Tracy, so switch it to be running on Watch in the Build Settings.

Upvotes: 0

Related Questions