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
18
votes
3 answers

WatchOS Unit Testing

I am building an app for Apple Watch and want to write a simple unit test. I looked around and didn't find a single way to add a unit testing bundle for watchOS code. Xcode supports unit tests for iOS, macOS and even tvOS but not for watchOS. Has…
sam
  • 3,441
  • 2
  • 33
  • 42
18
votes
1 answer

Apple Watch, Failed to install XXX, error: Application Verification Failed

We submitted an app recently with Apple Watch support. It installed from the App store fine but when preparing an update, we can't get it to install on a real Apple Watch anymore (fine in simulator). We have tried installing using Apple Testflight…
riddled
  • 191
  • 5
18
votes
7 answers

"Install of Apple Watch Application never finished" Error when deploying watch kit app to device

So I got my new watch (yay!). I manually added its UDID to the developer portal and refreshed the provisioning profiles and I was able to push an archive to ITC for testing but now I want to run the app in debug on my watch itself. I try deploying…
valheru
  • 2,552
  • 3
  • 20
  • 40
18
votes
3 answers

Check if iPhone is paired with apple watch?

In my app, I need to find if my phone is paired with a apple watch and get some information about the paired watch like its name. I tried reading the documentation but I couldn't seem to find any thing specific to my use case. Any help is…
Vamsi Krishna
  • 585
  • 6
  • 17
18
votes
1 answer

Social Framework for WatchKit

I want to create an Apple Watch app that allows users to share things right from their wrist. Is there a built-in Social framework for Apple Watch comparable to the Social framework on iOS?
fredpi
  • 8,414
  • 5
  • 41
  • 61
18
votes
3 answers

Why won't app groups work inside my WatchKit extension?

I've seen all the other posts of SO about sharing NSUserDefaults data between host apps and app extensions, but mine still doesn't work. Here's everything I've done: Enable App Groups on Xcode's "Capabilities" tab for the extension and host…
18
votes
4 answers

Heart Rate data on apple Watch

Can we access the heart rate directly from the apple watch? I know this is a duplicate question, but no one has asked this in like 5 months. I know you can access it from the Health App but I'm not sure how "real-time" that will be.
Andrew Garcia
  • 299
  • 1
  • 3
  • 8
18
votes
4 answers

Notify WatchKit app of an update without the watch app requesting it

I'm aware of the capabilities of WKInterfaceController openParentApplication and handleWatchKitExtensionRequest methods for the watch app to open the parent app and send/receive data. But how about this... In the instance where the user is using the…
Andrew Davis
  • 2,310
  • 1
  • 24
  • 43
18
votes
8 answers

How to reduce the spacing between rows in WKInterfaceTable

I want to remove the spacing between the rows in Table, is there any property for it?
Mohit Totlani
  • 825
  • 1
  • 10
  • 21
18
votes
9 answers

Apple watch simulator issue

I am trying to debug and run the app on apple watch simulator. I have tried by using different target for notification, Glance and Watch app but apple simulator don't shows any thing.. It stuck in waiting for attach process of extension. I just see…
NSAnant
  • 816
  • 8
  • 18
18
votes
2 answers

How to simulate the Local Notification in apple Watch App?

I am trying to simulate the local notification view in apple watch simulator. Does any one known how to simulate the local notifications in apple watch ? I have done some research for that but didn't found any answer for the above. There is a way to…
NSAnant
  • 816
  • 8
  • 18
18
votes
4 answers

How to trigger notifications using WatchKit

In the WatchKit developer guide, there are instructions on how to render custom notifications and it also says: Apps are not required to do anything to support notifications. The system provides a default notification interface that displays the…
ray
  • 181
  • 1
  • 1
  • 3
18
votes
16 answers

Installation Failed: Invalid Argument -iOS Extension

https://i.stack.imgur.com/nm3Jg.jpg I am about to build watch app target from existing project. I encountered a strange error upon finishing build that unables me to run the watch app properly. Here is the attached screenshot. Environment OSX…
Dsw
  • 281
  • 1
  • 2
  • 10
17
votes
4 answers

Xcode 11 Beta won't build because of WatchKit?

Worked on Xcode 10. Now in the beta I can't build I keep getting this error: a "WatchKit" is not available when building for iOS Simulator. Consider using #if !os(iOS) to conditionally import this framework.
jimijon
  • 2,046
  • 1
  • 20
  • 39
17
votes
1 answer

WatchKit SMS with preset body

I found this question which should have helped me, but the solution there is not working for me, and I am not sure if something has changed or if the problem is with my code. let messageBody = "hello" let urlSafeBody =…
Charlie
  • 1,279
  • 2
  • 12
  • 28