Questions tagged [watchkit]

WatchKit is an integral part of the Apple Watch experience for third-party applications. It contains the classes for creating Apple Watch applications and it ensures that an Apple Watch application can talk to its corresponding WatchKit extension.

WatchKit allows iOS developers to create rich, third-party app extensions with actionable items and notifications for the Apple Watch, as they've built apps for the iPhone and iPad.

More information on WatchKit:

3223 questions
17
votes
9 answers

Embedded Binary Validation Utility Error

Since yesterday Xcode is doing stupid things while trying to run my WatchKit app on my iPhone. It gives me the error: Embedded Binary Validation utility Error Error: warning: Is a directory It's not very helpful and it seems like it's complaining…
BalestraPatrick
  • 9,944
  • 4
  • 30
  • 43
17
votes
7 answers

Watch kit CFBundleVersion

Planning for watch kit integration error: The value of CFBundleVersion in your WatchKit app's Info.plist (1) does not match the value in your companion app's Info.plist (2.0). These values are required to match. Struck with above error. - changed…
Rajesh
  • 10,318
  • 16
  • 44
  • 64
17
votes
2 answers

Can I create a WatchKit app without a storyboard (entirely in code)?

My team is currently working on an iOS application in which we don't use storyboards at all. We create the UI in code instead. So for consistency's sake it would be great if we could create a Watch App target entirely in code. However, both the…
Michał Ciuba
  • 7,876
  • 2
  • 33
  • 59
17
votes
3 answers

Running Apple Watch in iOS simulator issue

I'm trying to run the Apple WatchKit Catalog example code in iOS simulator. But i have always Apple Watch simulator disabled. What i have to do?
Martino Bonfiglioli
  • 1,567
  • 1
  • 15
  • 29
16
votes
0 answers

How do you support Dynamic Type changes in a WKInterfaceLabel?

I have a WKInterfaceLabel in an Apple Watch app running watchOS 5. I have set its attributed string to one that contains a bold font attribute applied to a substring. The boldface shows correctly when the app is run. However, if you change the…
leftspin
  • 2,468
  • 1
  • 25
  • 40
16
votes
0 answers

How to get WatchOS4 heartRateVariabilitySDNN and it's use?

I am trying to use heartRateVariabilitySDNN. I successfully get heartRate by query and I use the following code for getting heartRateVariabilitySDNN but have no idea how it works. Also there is no proper documentation about this query or sample code…
Nitin Gohel
  • 49,482
  • 17
  • 105
  • 144
16
votes
0 answers

Dynamic Notification Interface will only work if the Watch app \ extension was opened at least once from the watch

Currently there are 3 flavors of notifications in the Apple Watch: Short - You can't customize these at all. Static - You can customize these on the Storyboard. Dynamic - Can customize UI elements with new data not coming on the Notification…
Segev
  • 19,035
  • 12
  • 80
  • 152
16
votes
3 answers

How to prevent the Apple Watch from going to sleep?

We are working on an Apple Watch project, but the watch goes to sleep if uninterrupted with. Is there any way to prevent it from going to sleep?
user3229261
  • 169
  • 1
  • 7
16
votes
3 answers

Is it safe to use updateApplicationContext to send keychain value

In watchOS 2, there are no more shared keychains. If I want to send a keychain value from the iOS app to the Watch app, is it safe to send it via WCSession updateApplicationContext?
david72
  • 7,151
  • 3
  • 37
  • 59
16
votes
2 answers

How to get current extension delegate on watchOS?

Is there a way to get the instance of extension delegate on watchOS? For example, can I get its instance from an interface controller or other code in the watch extension?
Evgenii
  • 36,389
  • 27
  • 134
  • 170
16
votes
2 answers

No architectures to compile for (ARCHS=, VALID_ARCHS=armv7k) Xcode 7 beta 3

My app have a watch kit support. Previously, with Xcode 6.4 my app was running properly. After updating with Xcode 7 beta 3 I am getting this error - No architectures to compile for (ARCHS=, VALID_ARCHS=armv7k). I am not sure in which target to…
Nayan
  • 3,014
  • 2
  • 17
  • 33
16
votes
5 answers

How to show Alert on Apple Watch

How to show Alert on apple watch. Is there any alternate to show alerts in the Apple Watch because I checked and UIAlertView is not working on Apple Watch.
Iqbal Khan
  • 4,587
  • 8
  • 44
  • 83
16
votes
11 answers

How to tell if current running Apple Watch size/dimension is 38mm or 42mm?

We know that there are two screen sizes for Apple Watch: 38mm and 42mm. The WKInterfaceDevice class provides a readable property named screenBounds. I wrote an extension for WKInterfaceDevice, trying to add a method to detect current device…
tounaobun
  • 14,570
  • 9
  • 53
  • 75
16
votes
1 answer

Watchkit: Set global tint programmatically

I know how to set the global tint of the project from Storyboard. But how do I set the tint programmatically? Apple's documentation goes as far to say: Every WatchKit app has an associated key color, which is applied to the >following UI…
Andrew Davis
  • 2,310
  • 1
  • 24
  • 43
16
votes
1 answer

How to launch iOS App from Apple Watch?

Is there any way to launch the iOS App from Apple Watch? Edit:- Tried using both api below but doesn't work:- Apple Watch Code Calling Inside interfaceController.m + (BOOL)openParentApplication:(NSDictionary *)userInfo reply:(void(^)(NSDictionary…
Hussain Shabbir
  • 14,801
  • 5
  • 40
  • 56