watchOS is the operating system for Apple Watch.

watchOS Documentation

Posts under watchOS tag

447 Posts
Sort by:
Post not yet marked as solved
5 Replies
585 Views
Hi, I'm trying to locate the app store receipt in the apple watch in order to send it to my server to verify. I'm using the Original API for In-App Purchase because my app needs to support watchOS 7.0 My watchOS app is an independent app still pending to release to App Store. I'm testing using TestFlight, and I have one-month subscription in state "Ready to submit". The process of purchase finishes fine in the apple watch -sandbox success screen- but then, when I invoke SKReceiptRefreshRequest in order to ask Apple for the Bundle.main.appStoreReceiptURL to download in my device and send it to my server to verify, I always get the following error: <SKReceiptRefreshRequest: 0x16df52c0>: Finished refreshing receipt with error: Error Domain=ASDErrorDomain Code=507 "Invalid container for application: file:///private/var/containers/Bundle/Application/8BAF3B0E-45FC-465A-92E2-CFB1507A33E1/IvooxAppleWatch%20WatchKit%20App.app/PlugIns/IvooxAppleWatch%20WatchKit%20Extension.appex/" UserInfo={NSDebugDescription=Invalid container for application: file:///private/var/containers/Bundle/Application/8BAF3B0E-45FC-465A-92E2-CFB1507A33E1/MyApp%20WatchKit%20App.app/PlugIns/MyApp%20WatchKit%20Extension.appex/} And the receipt isn't there, in the path Bundle.main.appStoreReceiptURL. I tried looking for both receipt and sandboxReceipt. No luck. I even tried to list the contents of StoreKit but that directory does not exist on my watch according FileManager. I cannot get rid of the error above. Any help is highly appreciated. Thanks in advance.
Posted Last updated
.
Post not yet marked as solved
0 Replies
388 Views
Is it possible to trigger SPO2 measurements programmatically more frequently than once per 15 minutes? For example, once per 1 minute? It is possible with manual measurements in "Blood Oxygen" app, but it would be helpful to find the way to do that programmatically.
Posted
by msharhan.
Last updated
.
Post marked as solved
4 Replies
220 Views
Its impossible to develope apps for watchOS because symbols for watchOS 19u66 cannot be downloaded: https://download.developer.apple.com/Developer_Tools/watchOS_19U66/Watch4_3_19U66.dmg p.s. I thought Apple was a serious company, but I see this is happening continiously since years ago...
Posted
by Antoyuju.
Last updated
.
Post not yet marked as solved
0 Replies
40 Views
I was getting an error from Xcode (14.3, 14E222b) when connecting my Apple Watch to the system Watch3,2 running 8.7.1 (19U67). The error is: The device is not available because there is an error downloading the symbols. I was able to download the symbols manually, from Apple's CDN: https://devimages-cdn.apple.com/downloads/xcode/dsc/Watch3_2_19U67.dmg , but when trying to install on MacOS Ventura 13.3.1 (a) (22E772610a), I get an error from the installer: This package is incompatible with this version of macOS. The package is trying to install content to the system volume. Contact the software manufacturer for assistance. How can I fix this issue? Why would I not be able to install the debug symbols for this OS? Do I need to downgrade my OS to be able to develop for this watch? Thanks.
Posted Last updated
.
Post marked as solved
4 Replies
99 Views
I updated my Apple Watch Ultra from watchOS 9.5 to 9.5.1 and now when I connect it to Xcode (14.3 from the App Store), it says that "the device is not available because there was an error downloading its symbols". I've rebooted the watch, the iPhone and the MacBook but still no luck. As soon as I connect the phone to the Mac, I see Xcode making the watch available for development but then it fails with this error. Everything was working fine with watchOS 9.5.
Posted
by bmt22033.
Last updated
.
Post not yet marked as solved
0 Replies
51 Views
I have a project on watchOS with Complications. Right now it works like this in ClockKit, when the app is not running on the watch, transferCurrentComplicationUserInfo method is utilized to manage the transfer of user information. This involves the ComplicationController being launched by the system, which then initiates the WCSession to receive data and update complications. My issue: How should I implement real-time update of complications transferCurrentComplicationUserInfo does not guarantee that my app will be launched by the system?
Posted
by Adnrii.
Last updated
.
Post not yet marked as solved
2 Replies
167 Views
I'm working on an independent watchOS app and I'm testing on the Apple Watch Ultra simulator as well as a couple of real Apple Watch Ultra devices (both have active cellular subscriptions on AT&T, are within 3 feet of their paired iPhones and connected to WiFi, as well). My app has an application delegate which implements the applicationDidFinishLaunching() method and in that method, I register with APNs for remote notifications. When I receive the token in didRegisterForRemoteNotifications(withDeviceToken:), I send the token on to the server that is going to send notifications to the app. When I test this code in the Apple Watch Ultra simulator, it works 100% of the time. When I test the same code on a real Apple Watch Ultra, about 70% of the time, I get the following error message in the Xcode debug console: 2023-05-12 08:32:30.779560-0400 Watch App Prototype[569:586139] PDTask <5110B87C-28D7-48C9-9C68-121C7728FF68>.<2> finished with error [9] Error Domain=NSPOSIXErrorDomain Code=9 "Bad file descriptor" UserInfo={_kCFStreamErrorCodeKey=9, _kCFStreamErrorDomainKey=1, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataPDTask <5110B87C-28D7-48C9-9C68-121C7728FF68>.<2>", "LocalDataTask <5110B87C-28D7-48C9-9C68-121C7728FF68>.<2>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataPDTask <5110B87C-28D7-48C9-9C68-121C7728FF68>.<2>} 2023-05-12 08:32:30.780401-0400 Watch App Prototype[569:586139] Task <5110B87C-28D7-48C9-9C68-121C7728FF68>.<2> finished with error [9] Error Domain=NSPOSIXErrorDomain Code=9 "Bad file descriptor" UserInfo={_kCFStreamErrorCodeKey=9, _kCFStreamErrorDomainKey=1, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <5110B87C-28D7-48C9-9C68-121C7728FF68>.<2>", "LocalDataPDTask <5110B87C-28D7-48C9-9C68-121C7728FF68>.<2>", "LocalDataTask <5110B87C-28D7-48C9-9C68-121C7728FF68>.<2>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <5110B87C-28D7-48C9-9C68-121C7728FF68>.<2>} The operation couldn’t be completed. Bad file descriptor I ran across a post from someone else about the same problem on StackOverflow. I'm not sure what to make of this error but here's the code that I'm using to send the URL request: func perform(_ urlRequest: URLRequest) async throws -> Data { let (data, response) = try await urlSession.data(for: urlRequest) guard let httpResponse = response as? HTTPURLResponse else { throw NetworkError.serverSideError(response: nil) } guard (200...299).contains(httpResponse.statusCode) else { throw NetworkError.serverSideError(response: httpResponse) } return data } For what it's worth, urlSession is the shared URLSession instance. Again, this error never occurs in the simulator but it happens on both of the Apple Watch Ultra devices and I would say it occurs about 70% of the time. Can anyone help me understand this error message?
Posted
by bmt22033.
Last updated
.
Post not yet marked as solved
4 Replies
296 Views
On Xcode 14.3 I am unable to download symbols for watchOS 8.7.1, which is preventing me from developing on my Apple Watch 3 device. The detailed error message is: DVTDownloadable: Download Failed. Downloadable: https://download.developer.apple.com/Developer_Tools/watchOS_19U67/Watch3_1_19U67.dmg. Error Domain=DataGatheringNSURLSessionDelegate Code=1 "Failed with HTTP status 403: forbidden" UserInfo={NSLocalizedDescription=Failed with HTTP status 403: forbidden} The link https://download.developer.apple.com/Developer_Tools/watchOS_19U67/Watch3_1_19U67.dmg doesn't work for me in Safari either.
Posted
by RoXX.
Last updated
.
Post not yet marked as solved
0 Replies
87 Views
I can't download the symbols for watchOS 19u66 into this link: https://download.developer.apple.com/Developer_Tools/watchOS_19U66/Watch4_3_19U66.dmg In thread https://developer.apple.com/forums/thread/730103 it was said that it was available, but it isn't. Anyone can help me? Thank you in advance!
Posted
by MRGR_57.
Last updated
.
Post not yet marked as solved
0 Replies
76 Views
Its impossible to develope apps for watchOS because symbols for watchOS 19u66 cannot be downloaded: https://download.developer.apple.com/Developer_Tools/watchOS_19U66/Watch4_3_19U66.dmg In thread https://developer.apple.com/forums/thread/730103 someone in Apple said it was available, but it is not...
Posted
by Antoyuju.
Last updated
.
Post not yet marked as solved
0 Replies
69 Views
I have tried URL session requests in the following three ways: Proxy through iPhone: Request failure "ErrorDomain =NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." Connecting to a known network: Request successful Connecting using cellular data: Request successful These tests were all conducted on the Apple Watch Series 6 watchOS 9.4. Does "watch-only App "not support URL session request through iPhone Proxy? Here is my current URL session request handler: let config = URLSessionConfiguration.ephemeral config.waitsForConnectivity = true config.requestCachePolicy = .reloadIgnoringLocalCacheData config.urlCache = nil config.allowsCellularAccess = true config.allowsConstrainedNetworkAccess = true config.allowsExpensiveNetworkAccess = true let session = URLSession(configuration: config, delegate: nil, delegateQueue: .main) let task = session.dataTask(with: url) { (data, response, error) in guard error == nil else { print(error!) self.error = "\(error!)" return } } task.resume() Info.plist <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSAllowsLocalNetworking</key> <true/> </dict>
Posted Last updated
.
Post not yet marked as solved
1 Replies
123 Views
Hi to all, I'm new to WatchOS development and trying to install the default Xcode 'Hello World' app on my Apple Watch Ultra. I've enabled Developer Mode on my iPhone and did the same on my Apple Watch. After enabling Developer Mode on the watch it asks me to restart the watch. After a restart it asks me again if I want to enable Developer Mode. Of course! I don't succeed in installing the app on my watch because Xcode is "waiting for first unlock" of my watch. When I look in Settings > Privacy > Developer Mode the toggle switch is disabled. I can enable the switch but the watch asks me to restart and this is the loop I'm in. Anybody suggestions for 'permanently enabling' Developer Mode on my Apple Watch? Thanks in advance!
Posted Last updated
.
Post not yet marked as solved
7 Replies
869 Views
This happens with new project recently created. Existing app is working fine. I can run and debug my watch app from Xcode on my Apple Watch device, but app gets deleted after stop running from Xcode. App is just gone for some reason. Tested with Xcode 14.0.1 and Xcode 14.1 RC 2, and Apple Watch on watchOS 9.1. This was happening before watchOS 9.1. Is anyone see this happening and know solution?
Posted
by hire.
Last updated
.
Post marked as solved
2 Replies
173 Views
Here's what happens: I install the app by updating the iOS companion app (debugging does not seem to work on Xcode 14) I launch the app, the spinner around the app icon is shown The app crashes and closes The crash reports are empty I have an app that runs back to watchOS 6, in an update in November I introduced something that now causes a crash on watchOS 6. That was also the first update I uploaded with the watchOS 9 SDK. It took me a while to get hold of an Apple Watch Series 2, since the issue is not reproducible in the watchOS simulator. I guess that some library is loaded that should not be loaded. I verified all linked frameworks and all those which are not available on watchOS 6, are marked as weak. Here's the crash report that I can get on the connected iPhone: {"bug_type":"109","os_version":"Watch OS 6.3 (17U208)","build_version":"1","timestamp":"2023-05-05 03:48:22.00 +0200","app_name":"... WatchKit Extension","bundleID":"xyz.redacted....","incident_id":"65713574-8B62-460F-B888-5883BE6E722E","name":"... WatchKit Extension","is_first_party":0,"app_version":"3.0","share_with_app_devs":1,"slice_uuid":"d19f4d3c-f36f-342a-a5df-55697c51b6c7","adam_id":0} Incident Identifier: 65713574-8B62-460F-B888-5883BE6E722E CrashReporter Key: a35b48fb320eafcf397ca73c04d9c4c855507a00 Hardware Model: Watch2,4 Process: ... WatchKit Extension [894] Path: /private/var/containers/Bundle/Application/2E5E3894-A93C-412C-A518-7B3C73B42E61/... WatchKit App.app/PlugIns/... WatchKit Extension.appex/... WatchKit Extension Identifier: xyz.redacted.....watchkitapp.watchkitextension Version: 1 (3.0) Code Type: ARM (Native) Role: Foreground Parent Process: launchd [1] Coalition: xyz.redacted.....watchkitapp.watchkitextension [438] Date/Time: 2023-05-05 03:48:22.0871 +0200 Launch Time: 2023-05-05 03:48:21.0000 +0200 OS Version: Watch OS 6.3 (17U208) Release Type: User Baseband Version: n/a Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x89248914 Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [894] Highlighted by Thread: 0 Backtrace not available Unknown thread crashed with ARM Thread State (32-bit): r0: 0x62070f70 r1: 0x20ac4f70 r2: 0x82b13dc1 r3: 0x00000000 r4: 0x62070f70 r5: 0x0015c000 r6: 0x27ca7224 r7: 0x27ca6288 r8: 0x890ec914 r9: 0x01810034 r10: 0x27ca6390 r11: 0x0180efe0 ip: 0x0180ef98 sp: 0x27ca6250 lr: 0x01b8b385 pc: 0x01b8b386 cpsr: 0x00000030 Binary images description not available Error Formulating Crash Report: Failed to create CSSymbolicatorRef - corpse still valid ¯\_(ツ)_/¯ EOF Best, Alex
Posted
by AlexSFD.
Last updated
.
Post marked as solved
1 Replies
104 Views
This is probably a silly question, but I couldn't find the answer to it in the forums or in the documentation, though I may be missing something. I currently have an app with a deployment target of iOS 16 and a watchOS app (not independent) with a deployment target of watchOS 7. I understand what happens when I change the deployment target on the iOS app (e.g., users with iOS/iPadOS versions less than 16 will just never see the updates in the App Store). But what happens if I change the deployment target of the watchOS dependent app to something like watchOS 8? Will users who have iOS 16 and watchOS 7 (iOS meets deployment target/watchOS does not) get the app update, and it'll just uninstall the watchOS app automatically? Will they just not see the update? Does the old version of the Watch app somehow stay on their watch while the iOS app gets updated?
Posted
by khagan.
Last updated
.
Post marked as solved
5 Replies
1.4k Views
On Xcode 13.3.1, 13.4.1, and 14.0b5 I am unable to download symbols for watchOS 8.7.1, which is preventing me from developing on my Apple Watch device. The error I'm getting is a "403: forbidden" on the resource, with the more detailed error message showing on the Devices window: Work Apple Watch via Work iPhone: Could not download and install Symbols for watchOS 8.7.1 (19U67). Failed to download package from ADC. There are no valid accounts registered with Xcode that have the ability to access this resource. Contact Apple Developer Program Support to resolve account access issues. I am signed into a paid Apple Developer account, so I'm not sure why my account is not considered "valid".
Posted Last updated
.
Post not yet marked as solved
2 Replies
757 Views
Similar to this issue with 9.1 Symbols, I can't seem to download the symbols for WatchOS 9.2. I have an empty folder under "~/Library/Developer/Xcode/watchOS DeviceSupport/Watch6,15 9.2 (20S361)". I'm trying to connect my watch (Apple Watch 8, 9.2 (20S361)) via my iPhone (13 Pro, iOS 16.1.2), testing a standalone watchOS app created in Xcode 14.2 (14C18). I've turned on Developer mode on both my phone and the watch. When I select my paired watch via my phone, it starts to build, and eventually fails. Then in the build target, I see that 'The device "Apple Watch" is not available because there was an error downloading its symbols.' If I disconnect my iPhone, delete the empty folder, and try to rebuild, it recreates the folder, but it's still empty. In the past it looks like this has been resolved by something on the Apple Developer site's backend. Is there something else I should be doing / trying?
Posted Last updated
.
Post not yet marked as solved
2 Replies
636 Views
I have tried several times to restart all the devices or turn off turn on developer mode, but continuing getting "waiting for first unlock" in Xcode. The Xcode version is 14.2 with ios 16.0. I tried to work with the older version of iOS 15 and Xcode13, but it failed with "new watch new ios version at 16.0". Does anyone know how can I get this working? Thanks
Posted
by shashasha.
Last updated
.
Post not yet marked as solved
3 Replies
160 Views
I created a project with "watch-only App" template in XCode, running on Apple Watch Series 6, the console output network error: ErrorDomain =NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." However, It works fine on the Apple watch Ultra. I try the following: I added the following code, but doesn't work. configuration.allowsCellularAccess = true configuration.waitsForConnectivity = true Tried using the Alamofire framework, but it didn't work. import Alamofire var body: some View { VStack { Text("hello world") .task { URLCache.shared.removeAllCachedResponses() AF.request("https://api.thecatapi.com/v1/images/search?limit=1").response { response in print( response) } } } } Turn off the Wi-Fi and Bluetooth of the mobile phone. The Watch Series 6 can successfully request through Wi-Fi. But that's not an option. I can't ask my users to turn off Wi-Fi and Bluetooth before using my app. Here is my code: VStack { Text("hello world") } .onAppear { guard let url = URL(string: "https://api.thecatapi.com/v1/images/search?limit=1") else { print("Invalid URL") self.error = "Invalid URL" return } let dataTask = URLSession.shared.dataTask(with: url) {(data, response, error) in guard error == nil else { print(error) return } print(data) } dataTask.resume() } What can I do? My Apple Watch Series 6 version is watchOS 9.0. I noticed when lauching my app first time on the Apple Watch Series 6. It doesn't ask for 'allow "Settings" to use wireless data’.But I was asked about it on the Apple Watch Ultra.
Posted Last updated
.
Post not yet marked as solved
4 Replies
1.5k Views
My watchOS app crashes when I accept/change the microphone or Bluetooth permission from its companion iOS app. It crashes with the following message in the console. Message from debugger: Terminated due to signal 9 Please let me know a way to identify and fix the exact problem. here are my device logs: Device logs and crash report
Posted Last updated
.