Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WatchKit apps must have a deployment target equal to iOS 8.2 (was 8.3)?

I just downloaded Xcode 6.3 beta 4, and my WatchKit app now fails to build with an error:

Embedded Binary Validation Utility Error error: WatchKit apps must have a deployment target equal to iOS 8.2 (was 8.3) 

The iOS app and the project actually have a deployment target of 7.1 and always have, but we've been working with the iOS 8.3 SDK for our WatchKit component (using Swift 1.2) without issue using Xcode 6.3 beta 1, 2 and 3. This error only arose with Xcode 6.3 beta 4.

Anyone else have this error, and know how to fix it?

like image 696
UberJason Avatar asked Mar 24 '15 20:03

UberJason


People also ask

What is iOS deployment target in Xcode?

In short, every application that runs on one of Apple's platforms has a deployment target. A deployment target is nothing more than the minimum version of the operating system the application can run on. Fire up Xcode and create a new project by choosing the App template from the iOS > Application section.

How do I set a deployment target in Xcode?

Deployment Target refers to the oldest version of iOS that is capable of running your project. To change your deployment target, open up your project file in Xcode and check the setting under Build Settings -> Deployment(...) Check this answer to add earlier devices support.

What is WatchKit extension?

A WatchKit Extension process that executes the watch app's application logic. This is bundled with your Watch app and runs on the Apple Watch. A Watch app that displays user interface elements and handles navigation.


1 Answers

Select your project settings and go to "TARGETS". Click on your Watch Kit App, select Build Settings. For the key "iOS Deployment Target" you should find "iOS 8.3". For some reason Xcode 6.3 Beta 4 wants to have this on "iOS 8.2" for "Debug" and "Release". Now your project should build as expected.

This is still true for XCODE 6.3 release!

like image 111
netshark1000 Avatar answered Sep 21 '22 04:09

netshark1000