watchOS is the operating system for Apple Watch.

Posts under watchOS tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

XCode 15 - Getting WatchKit Extension Error while Project try to run in real device
Facing a error when switch project Xcode 14 to Xcode 15 in M1 Mac. In simulator it is working fine but when try to real device getting error. Also try all solution from below link but not able to solve the error. https://developer.apple.com/documentation/technotes/tn3117-resolving-build-errors-for-apple-silicon/ Let me know if anyone know solution.
0
0
386
Oct ’23
Issues - Apple Watch Keynote Remote via iPad mini 6 Keynote Presentation
Apple Watch 6 iOS 10.1 - Keynote Remote via iPad mini 6 iPadOS 17.1 - Keynote Presentation I can connect my iPhone with the Keynote Remote on my MacBook Pro and my iPad Mini for Keynote presentations. All devices sync perfectly when I use my Apple Watch 6 to advance to the next slide. This setup works seamlessly over WiFi. With the new iOS 17 on my iPad Mini 6, which has a USB-C port, I can directly connect an HDMI adapter to an HDTV. This also works well. However, I'm facing an issue when trying to use my Apple Watch 6 as a Keynote Remote for my iPad Mini presentation. The Apple Watch doesn't seem to support a direct standalone connection with the iPad Mini for this purpose. Is there a solution for using the Apple Watch as a Keynote remote for the iPad Mini when it's connected to an HDTV? This should be part of #AccessibilityLens in it. Thank you,
1
0
377
Oct ’23
Apple Watch watchOS10 still displays sensitive information when not being worn
Prior to watchOS10, I marked a view that I want to hide sensitive information when not being worn by using .privacySensitive() This had been working just fine. Comes watchOS10, this doesn't work anymore. Even with this simple code Text("TEST Privacy") .containerBackground(for: .widget) { Color.black } .privacySensitive() The text view is displayed even when not being worn. Has anyone experienced this? It seems like a bug to me. Any workaround? Thank you.
0
1
594
Oct ’23
watchOS I'm having a lot of trouble with the specifications.
We sincerely thank you for granting us your valuable time. Our company is currently facing several issues related to the Apple Watch app, and we would appreciate any expert advice you could provide. Your responses to the following questions amidst your busy schedule would be greatly beneficial to us. ■Question 1 After successfully installing an Apple Watch-specific app from the iPhone and subsequently deleting it, we attempted to reinstall it. Could you please provide guidance on how to uninstall and reinstall the app in cases where it is displayed as "Purchased"? We would like to know whether the app cannot be installed a second time once it has been installed from the iPhone. ■Question 2 When trying to install an Apple Watch-specific app by obtaining it from the "App Store" on the iPhone and attempting installation from the "Watch app", there are instances where the app does not appear on My Watch. Could you kindly provide information on factors that may influence whether the app is displayed or not, should you possess such information? ■Question 3 Could you please instruct us on how to directly launch an Apple Watch-specific app on the iPhone, and also how to guide users to the corresponding "App Store" page of the app? As Apple Watch-specific apps cannot be installed from the "App Store" on the iPhone, your advice would be greatly appreciated.
0
0
171
Oct ’23
Unable to download symbols for watchOS 6.3 (17U208)
Xcode 15 can not download symbols for watchOS 6.3 (17U208). It shows "Failed - Failed with HTTP status 403: forbidden". Detail information are as followings. Failed with HTTP status 403: forbidden Domain: DataGatheringNSURLSessionDelegate Code: 1 User Info: { DVTErrorCreationDateKey = "2023-10-17 14:42:34 +0000"; } -- System Information macOS Version 14.0 (Build 23A344) Xcode 15.0 (22265) (Build 15A240d) Timestamp: 2023-10-17T22:42:34+08:00 code-block I clean ~/Library/Developer/Xcode/DerivedData, ~/Library/Developer/Xcode/watchOS DeviceSupport, and also also clean (com.apple.dt.Xcode) folders/files in ~/Library/Caches, but got same error. may I know where to download the symbols for watchOS 6.3 (17U208) ? LR
1
0
249
Oct ’23
WKCrownDelegate.crownDidRotate() not always receiving events
I have a WatchOS app with scrollable views. Depending on the state of the app I would like to receive crown rotation events. To achieve this behavior I have set up a timer that calls the focus() method of the crownSequencer. In the Apple Watch simulator in XCode the app behaves consistently and there are no problems. However, some users (not all) report that rotating the crown does not work. What could be the reason for this behavior? Here is the relevant code: import WatchKit import Foundation import HealthKit class MyInterfaceController: WKInterfaceController { var controlTimer: Timer?; var restTimer: Timer?; var timer: Timer?; override func awake(withContext context: Any?) { super.awake(withContext: context) setupTimers() } override func willActivate() { super.willActivate() setupTimers() } override func didAppear() { super.didAppear() setupTimers() } func setupTimers() { clearTimers() restTimer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true, block: { _ in // Do something }); timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true, block: { _ in // Do something }); controlTimer = Timer.scheduledTimer(withTimeInterval: 0.2, repeats: true, block: { _ in if (someCondition == false) { self.crownSequencer.resignFocus() } else { self.crownSequencer.delegate = self self.crownSequencer.focus() } }); } func clearTimers() { controlTimer?.invalidate() controlTimer = nil restTimer?.invalidate() restTimer = nil timer?.invalidate() timer = nil } } extension MyInterfaceController : WKCrownDelegate { func crownDidRotate(_ crownSequencer: WKCrownSequencer?, rotationalDelta: Double) { if (rotationalDelta > 0.2) { // Do something } else if (rotationalDelta < -0.2) { // Do something } } }
0
0
369
Oct ’23
Submit WatchOS app only with option to add a companion iOS app later
I would like to deploy a WatchOS app without the companion iOS app. Here's my situation: I have created a WatchOS app with a companion iOS app The watch app supports running without the companion app The watch app is fully functional, and in fact the iOS companion is not built yet Is it possible to submit the WatchOS app without the companion iOS app with the option to submit the iOS companion at a later date? I would like to avoid having to create a new watch only app because once I release the iOS companion app, the old watch app would be considered a different app. If it is possible, some guidance on how to achieve this submission would be appreciated.
1
0
350
Oct ’23
Can WatchOS app share In-App purchases with companion IOS app?
Can a WatchOS app with its companion IOS app share In-App Purchases and can this be verified with a Sandbox testing user? Apple's documents and several tutorials give very mixed answers. There are at least two other similar questions on this site with no answers in a year. Most questions cover either standalone watch in-app purchases, or sandbox testing IOS in-app purchases. None answer the full question about sharing purchases between the watch and phone. I have the app working on IOS and WatchOS but am stuck at the In-App testing to confirm whether this really works. The IOS app works for In-App purchases with StoreKit and Sandbox users. The WatchOS app works with Storekit if I run the watch target on my real watch, but seems to have its own transaction list separate from the IOS app. If I install the watch app from the iPhone running the IOS target, I get the error below. The watch doesn't let me login as the sandbox user. "Unable to purchase App. Sign in with your Apple ID from the Apple Watch app on your iPhone." Changing the Apple ID for the watch on the iPhone appears to require unpairing and repairing the watch which Apple's documentation suggests shouldn't be necessary. So 2 key questions: Can a Watch app share the in-app purchase transactions with its companion iPhone app or will the watch have its own separate transaction list? Can a Watch app test In-App Purchases with a Sandbox user? Thanks!
3
0
351
Oct ’23
Shallow Depth and Pressure entitlement
I wrote my app with the entitlement "com.apple.developer.submerged-shallow-depth-and-pressure" and also with underwater-depth for WKBackgroundMode. All is working fine when I tested the app. When I want to put the app in the store I got the following error: **Missing entitlement. The Info.plist for the watchOS app bundle at “Watch App.app” uses the underwater-depth value for WKBackgroundModes without the com.apple.developer.submerged-depth-and-pressure entitlement signed into the bundle. ** I wonder why the entitlement in the error message is without -shallow- and why I get this message.
2
0
819
Dec ’23
Location Retrieval in watchOS for Alarm App
Hello! I'm currently working on a panic alarm app and am in the process of developing an extension for the Apple Watch. I'm trying to retrieve the location on watchOS, but I've encountered some issues. Could you provide an example or guide on how to successfully obtain the location? I suspect there might be a problem with the didFailWithError method not being recognized. Any assistance would be greatly appreciated. // Home2.swift // (watchOS) Watch App // // Created by Admin on 15.08.2023. // import SwiftUI import CoreLocation import CoreLocationUI class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate { let manager = CLLocationManager() @Published var location: CLLocationCoordinate2D? override init() { super.init() manager.delegate = self } func requestLocation() { manager.requestLocation() } func checkPermission() { print("authorization status:") switch manager.authorizationStatus { case .authorizedAlways: print("always") break case .authorizedWhenInUse: print("authorized when in use") break case .notDetermined: print("notdetermined") break case .denied: print("denied") break case .restricted: print("restricted") break default: print("none of the above") break } } func requestPermission() { checkPermission() manager.desiredAccuracy = kCLLocationAccuracyBest manager.requestWhenInUseAuthorization() } public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { location = locations.first?.coordinate } public func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) { // Error handling print("Error requesting location") } } struct Home2: View { @Binding var alarmStatus: String @StateObject var locationManager = LocationManager() @State var error: String = "" func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) { // handle the error print("error ting location fra struct:" + error.message!) } func callForHelpSync() { let name = "EnBruger" /*do { try locationManager.requestPermission() print("her") let locVal = try locationManager.requestLocation() print("locVal: \(locVal)") } catch { print("locVal error: \(error)") } */ let userId = ReadlocalStorage(key: "userId") let lat: Double = 123 // TODO let long: Double = 1234 // TODO Task { let res = try await callForHelp(name: name, id: userId, lat: lat, long: long) print("callforhelp res: " + res as Any) if (res == "Sent") { //opdater binded value. alarmStatus = "Sent" } else { // vis error besked. error = "Error: \(res)" } } } var body: some View { VStack(){ Image("logo") .resizable() .aspectRatio(contentMode: .fit) Spacer() Button(action: { print("record clicked") WKInterfaceDevice.current().play(.click) }) { VStack() { Text("Aktiver Alarm") .multilineTextAlignment(.center) .padding(1.0) .font(.system(size: 22, weight: .bold)) Text("(Hold inde)") .multilineTextAlignment(.center) .padding(1.0) } } .padding(11.0) .background(/*@START_MENU_TOKEN@*//*@PLACEHOLDER=View@*/Color(hue: 1.0, saturation: 0.966, brightness: 0.824)/*@END_MENU_TOKEN@*/) .buttonStyle(.plain) .simultaneousGesture(LongPressGesture(minimumDuration: 2).onEnded({_ in callForHelpSync()})) Text(self.error).font(.footnote).foregroundColor(Color.red).fixedSize(horizontal: false, vertical: true) Spacer() Button(action: { print("test button 1 clicked") locationManager.requestPermission() }) { VStack() { Text("Test Knap 1") .multilineTextAlignment(.center) .padding(1.0) .font(.system(size: 22, weight: .bold)) } } .padding(6.0) .background(.blue) .buttonStyle(.plain) if let location = locationManager.location { Text("Your location: \(location.latitude), \(location.longitude)") } LocationButton { locationManager.requestLocation() } .frame(height: 44) .padding() Button(action: { print("test button 2 clicked") var lh = LocationHandler() lh.requestLocation() }) { VStack() { Text("Test Knap 2") .multilineTextAlignment(.center) .padding(1.0) .font(.system(size: 22, weight: .bold)) } } .padding(6.0) .background(.blue) .buttonStyle(.plain) } .background(/*@START_MENU_TOKEN@*//*@PLACEHOLDER=View@*/Color.white/*@END_MENU_TOKEN@*/) } } struct Home2_Previews: PreviewProvider { static var previews: some View { @State var alarmStatus = "none" Home2(alarmStatus: $alarmStatus) } }
0
1
421
Oct ’23
Standalone watchOS App Versioning
Overview I could use some help understanding app versioning for standalone watchOS apps. I'll outline my scenario first, then list my questions. Scenario In Xcode 15, when creating a new standalone watch app called Foobar, Xcode automatically creates some targets for me: Foobar, Foobar Watch App, and two test targets. My goal is to set/increment the app version and build number. When I open the Foobar Watch App target in Xcode, I set the Version and Build number in the General tab to 1.2.3 and 45, respectively. However, when I archive the app, it doesn't use the versions I set: instead, using the default 1.0 (1). The same verison is set when uploading to TestFlight. The only way I have been able to set/increment the app version for an archive is to modify the Foobar target --> Build Settings --> Versioning. Questions I am wondering a few things: Why does Xcode pick the Foobar target version rather than the Foobar Watch App target for a standalone watch app? (I couldn't find documentation around this behavior) The Foobar target's General tab does not list the Identity section, which is normally where I'd expect to set that information. Why would I need to set this information in the Build Settings tab? Since Xcode picks the Foobar target for versioning, what does the watch target version do? Should I ever increment it for my standalone app? Are there any suggested ways to adjust the app version for a standalone watch app? - For example, can I use a variable to keep both app targets in sync?
0
0
321
Oct ’23
Cannot install watch app on watches running watchOS 7 & 8 after adding WidgetKit extension
In our most recent app update, we added a WidgetKit extension to our watch app. The WidgetKit extension has a minimum deployment target of watchOS 9, but the watch app has a minimum deployment target of watchOS 7. After releasing this update, we discovered customers running watchOS 7 & 8 can no longer install the app on their watch. When tapping the Install button in the Watch app on the phone, it spins for a while and then stops and returns to saying Install. No error message is displayed. If I build and run the iOS app through Xcode, I'm able to install the app on a watch running watchOS 8.8.1. However, I'm unable to install the app on the watch from TestFlight or the App Store. Has anyone else run into this or have any thoughts on what project settings we should look at to fix the issue?
4
1
686
Nov ’23