Questions tagged [watchos]

watchOS is Apple's operating system for Apple Watches. Optimized for touch-based interfaces, this OS has a lot in common with iOS, which is the operating system for Apple's mobile devices, but shouldn't be confused with it.

watchOS is Apple's operating system for Apple Watches. Optimized for touch-based interfaces, this OS has a lot in common with , but shouldn't be confused with it.

Currently, the Apple Watch is the only device that runs watchOS. Its API is called WatchKit (see ).

Helpful links

1236 questions
0
votes
2 answers

How to check in code if current target has watch app version available?

I'm working in a view where I should customize it regarding if there is a Watch Version of the app. I know that I can use: [[WCSession defaultSession] isWatchAppInstalled] (but that is not what I want because the user can uninstall the app in the…
aguilarpgc
  • 1,181
  • 12
  • 24
0
votes
1 answer

Ambiguous use of 'subscript(_:)'

func getCurrency() { let myLink:[String] = ["url1", "url2", "url3"] for link in myLink{ let url = URL(string: link) let task = URLSession.shared.dataTask(with: url!) { (data, response, error) in …
0
votes
1 answer

Why are WatchKit classes not recognised in new .swift file?

I am trying to create a new swift file in Xcode to house a class that derives from WKInterfaceObjectRepresentable. E.g. import WatchKit struct Bing: WKInterfaceObjectRepresentable { } But I get the following error: Use of undeclared type…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
0
votes
1 answer

How to fix missing interface controller inside Page Controller in Apple Watch?

What I found is ? Try to scroll horizontally between the interface controllers inside a root page controller. Randomly after a while (30-1 min). You will find that one of the interface controllers gets missing. Blank view is shown, UI disappears…
0
votes
1 answer

Problems returning heart rate values using `HKAnchoredObjectQuery` on Series 5 Watch and Watch OS6

I am using HKAnchoredObjectQuery to query for heart rates as I would prefer not to use the WorkoutBuilder API for this app. This query has always returned heart rates during a workout at normal sample rates (per second etc) but I noticed that while…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
0 answers

WKApplicationRefreshBackgroundTask is missing userInfo passed via scheduleBackgroundRefreshWithPreferredDate

I'm pass the userInfo NSDictionary thusly: [[WKExtension sharedExtension] scheduleBackgroundRefreshWithPreferredDate:[NSDate dateWithTimeIntervalSinceNow:10] userInfo:[NSDictionary dictionaryWithObjectsAndKeys:@"timer", @"reason", nil] …
pstoppani
  • 2,531
  • 1
  • 20
  • 20
0
votes
1 answer

Incorrect scroll behavior when using a list in WatchOS

Behavior #1: I'm trying to have text before I have a list of elements and have everything scroll cohesively. I've tried changing the code in many aspects and end up getting different incorrect behavior. Here is the code for behavior_1: struct Thing:…
39fredy
  • 1,923
  • 2
  • 21
  • 40
0
votes
1 answer

Watchos app is uninstall automatically after some days

Right now I don't have a developer account, so I used to install a watch app on Apple watch series 3 using Xcode. In the last few months, I observed that my app is usually uninstalled automatically after some days about one week even I run the app…
anil kumar
  • 13
  • 1
  • 5
0
votes
1 answer

Error: Make directory (Path): Not a directory (in target 'Watch' from project (Project name))

I have followed everything very thoroughly and in detail from this tutorial, but I get this error. I am still a beginner and I do not know how to fix this problem right now. I tried to also delete that folder via the terminal…
0
votes
1 answer

How to display an alert in page based interface on WatchOS?

My watch app has a page based interface where I don’t really know what InterfaceController is currently on the screen (it could be 1 of 4), however I need to pop an alert no matter what screen the app is on. How can I present an alert given I don't…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
1 answer

Combining an animated view with another view using ZStack

I'm working on a WatchOS-app that needs to display an animation on top of another view while waiting for a task to finish. My approach is the following (ConnectionView): struct ConnectionView: View{ @EnvironmentObject var isConnected : Bool …
heinz_dieter
  • 315
  • 1
  • 4
  • 12
0
votes
1 answer

iOS - watchOS App ITMS-90806: CFBundleIdentifier collision Alamofire

I have an app for iOS and watchOS, both using Alamofire to communicate to our server for authentication and notification responses. After successfully uploading my app from Xcode I received the following email from App Store Connect. "ITMS-90806:…
sulli233
  • 41
  • 2
0
votes
1 answer

How to implement watch-only database using watchkit

I am making a watch-only watchOS app. I am collecting answers to a few questions and I want to store it in a database on the watch itself. I know that watchkit supports SQLite, but I couldn't find tutorials on how to set up an SQLite server on…
0
votes
1 answer

This app could not be installed at this time. Found WatchKit 2.0 app named Astronaut.app when we already found AstroJump WatchKit App.app

I am trying to build watchOS SpriteKit app, but when i try to run it it still throws me this kind of error: This app could not be installed at this time. Found WatchKit 2.0 app named Astronaut.app when we already found AstroJump WatchKit…
Jakub
  • 11
  • 6
0
votes
1 answer

Scrollviews stopped working after update to watchOS 6, did something change?

I have an application that uses iOS, todayExtension and watchOS as targets. Until the launch of the new iOS 13, everything was working fine, that week I downloaded the iOS 13 beta on my iPhone and the watchOS 6 on my watch. Then, suddenly my app…
FabricioStein
  • 71
  • 1
  • 5