0

I have a problem with WatchKit in XCODE 6.3 i can't build my app. Xcode tell me

error: WatchKit apps must have a deployment target equal to iOS 8.2 (was 8.3).

Do someone knows something about this issue ?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
BilalReffas
  • 8,132
  • 4
  • 50
  • 71
  • What version of Xcode are you running? – Ben Kane Apr 09 '15 at 20:58
  • possible duplicate of [WatchKit apps must have a deployment target equal to iOS 8.2 (was 8.3)?](http://stackoverflow.com/questions/29242067/watchkit-apps-must-have-a-deployment-target-equal-to-ios-8-2-was-8-3) – Artjom B. Jul 04 '15 at 10:54

3 Answers3

2

Your iOS app can target versions less that 8.2, but the WatchKit app and WatchKit extension must target iOS 8.2 (or later I'm assuming). Please make sure you're satisfying those requirements.

See this Apple Developer Forums link for more info.

Ben Kane
  • 9,331
  • 6
  • 36
  • 58
  • 1
    Yes everything all right now i have another issue "error: The value of CFBundleShortVersionString in your WatchKit app's Info.plist (1.0) does not match the value in your companion app's Info.plist (1.2.4). These values are required to match." – BilalReffas Apr 09 '15 at 21:39
  • thanks everything fine right know :) sometimes XCODE it's really strange – BilalReffas Apr 09 '15 at 21:44
  • @BenKane I still not able to fix this issue. CFBundleShortVersionString means what? – iOSdev Apr 21 '15 at 05:50
  • 1
    @iOSdev That's the property list key for the version number. You'll see it in your app's plist as `Bundle versions string, short`. You can also set it above the build number on the app settings page. You could always search your project (cmd + shift + f) for `CFBundleShortVersionString` to see where it is used :) – Ben Kane Apr 21 '15 at 13:29
0

I also had the same issue. It was actually a bug in Xcode 6.3. For some reason Xcode wanted deployment target of WatchKit App (and Not our app target) to be exactly 8.2

Changing "iOS Deployment Target" field in build settings of Watchkit app target to 8.2 as mentioned here solved the issue.

Community
  • 1
  • 1
arundevma
  • 933
  • 7
  • 24
0

I suspect it to be a bug of Xcode 6.3, it generally appears if we add a target for watch app in a project which have previously deployment target less than 8.2 . To resolve the issue, you can change your deployment target for all the individual targets of your project (watch kit extension and iOS app) as 8.2, clean the project, restart the Xcode, hope your problem will be resolved.

Rahul Mathur
  • 872
  • 1
  • 7
  • 20