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
1
vote
1 answer

standalone watchOs app need to distribute it?

I have a standalone watchOS app for apple watch, I made an export IPA for this app and I need to distribute it to the test team on a platform like app center or use another app to install this IPA on apple watch?
1
vote
1 answer

How to access class from iOS folder in watchOS App

How to access a data class which is in the iOS folder from the watchOS extension folder. If i want to access the class normally by calling my DataService i get this error: This file I want to access:
SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
1
vote
1 answer

How to make WCSession reachable when the watchOS app is running in background with HKWorkoutSession

My watchOS app uses workout API in order to stay running while the app goes to background. The issue is that WCSession becomes unreachable when the app is in background. However, I'm able to run my code and on some condition, it needs to send a…
Roman Samoilenko
  • 932
  • 12
  • 25
1
vote
0 answers

Unexpected Behavior with Swift's Compiler -- Probably

I was doing a WatchKit app, and I faced a very strange behavior which I think probably hasn't to do with WatchKit, but some weird way the compiler is behaving, although not sure if the compiler is the culprit but that's what I suspect. The scenario…
Sean Goudarzi
  • 1,244
  • 1
  • 10
  • 23
1
vote
1 answer

Cancel a smart alarm without any haptic feedback

I have create a smart alarm which relies on WKExtendedRuntimeSession. There should be a possibility to manually stop the background session by, for example navigating back in the view hierarchy. class BackgroundSessionController { private var…
Bjorn Morrhaye
  • 687
  • 9
  • 30
1
vote
0 answers

Check WatchOS version in switch statement

I have an application using WatchKit and one of the function includes a switch statement for checking a CLKComplicationFamily, essentially switch complication.family { case .extraLarge: ... case .circularSmall: ... ... } Some types of…
alistairv
  • 159
  • 9
1
vote
1 answer

Invalid Swift entry point data

Whenever I run my watchOS app, I get this error message in the console. Could this be the issue, why my WCSession cannot run as intended? *** WatchKit Extension[33667:3380818] [default] lookupMainFuncAddressInMachHeader:71: Invalid Swift entry…
mt0000
  • 57
  • 5
1
vote
2 answers

How do I transfer a dictionary with transferUserInfo to Apple Watch?

I am trying to put a part of my Apple Watch app behind a paywall. For that, the iOS app automatically creates a dictionary with a true/false value, whether the content is purchases of not. The problem is, is no matter how I try, I cannot pass it to…
mt0000
  • 57
  • 5
1
vote
0 answers

Validation fails with iOS app with Watch kit extension in Xcode 12.3

After archiving in Xcode 12.3 my archiving is getting succeeded but while validating I am getting these two errors App Store Connect Operation Error Missing architecture. Apps built with Watch OS 5.0 and later SDKs must contain additional…
Shakti
  • 986
  • 12
  • 22
1
vote
0 answers

Invalid Executable - The executable ProjectName WatchKit Extension' does not contain bitcode

I have been trying to submit my watch app in the app store but It's been rejected due to the following reason. Invalid Executable - The executable 'ProjectName.app/Watch/ProjectName WatchKit App.app/PlugIns/ProjectName WatchKit…
1
vote
2 answers

Xcode 12 Apple Watch Debug Cycle

I just got back into iOS / WatchKit development after a ~8 year break. I'm having a really hard time making an app for the watch, because Simulator is not helping because random things seem unsupported (most recent example being…
fabian789
  • 8,348
  • 4
  • 45
  • 91
1
vote
0 answers

Awakening iOS app from paired Apple Watch

Documentation states that when Watch app sends WCSession.default.sendMessage to the paired iOS app, iOS app wakes up in background: Calling this method from your WatchKit extension while it is active and running wakes up the corresponding iOS app…
Nick
  • 3,205
  • 9
  • 57
  • 108
1
vote
0 answers

Removing observers from a WKInterfaceController

Is it recommended to remove observers from instances of WKInterfaceController? If so, is there a recommended lifecycle function in which to do it? According to Apple Documentation iOS 9.0 and macOS 11.0 and later don't require removing observers but…
rharding
  • 551
  • 1
  • 3
  • 14
1
vote
0 answers

How to get Low Heart Rate notification from ios Healthkit app using swift?

I'm using the following Swift code. let lowHREventType = HKObjectType.categoryType(forIdentifier: .lowHeartRateEvent) let lowHREventQuery = HKSampleQuery(sampleType: lowHREventType, predicate: nil, limit: 30, sortDescriptors: [sortByTime]) { (query,…
1
vote
0 answers

Mixing audio with Apple Watch

Question: How can I get get text-to-speech working when delivered from the Apple Watch so that it does not stop my music and it gets delivered to a bluetooth device? I am working on a running App that has an iPhone App and an Apple Watch App. I want…
Dr. Mr. Uncle
  • 484
  • 5
  • 12