Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install Watch app

When trying to test a Watch app on the Watch, in XCode I get the following warning

Watch App xcodeproj TARGETED_DEVICE_FAMILY contains a value incompatible with the target type.

enter image description here

Looking at the Device logs, it says:

(Error) WatchKit: validateWatchKitApplicationInfoDictionary, invalid UIDeviceFamily value

What am I missing?

like image 439
daihovey Avatar asked May 29 '26 10:05

daihovey


1 Answers

Your Watch Extension should have a TARGETED_DEVICE_FAMILY of iPhone whereas the Watch App target should have TARGETED_DEVICE_FAMILY of 1,4 like this:

Xcode device family settings for apple watch

I had a similar problem on a project that was created with an Xcode beta. I ended up creating a new test project and going through side by side and comparing all the settings.

like image 110
ToddH Avatar answered May 31 '26 11:05

ToddH