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

Type '()' cannot conform to 'View'

I'm struggling to output a random String inside the View. Due to the error: Type '()' cannot conform to 'View I've learned that View isn't the appropriate place to write down the functions itself. What should I do to output itemX.randomElement()…
Epicminetime
  • 183
  • 1
  • 1
  • 6
15
votes
3 answers

WC WCSession counterpart app not installed

Making a connection between iOS and iWatch devices, xCode writes [WC] WCSession counterpart app not installed. After a lot of research, I've found a solution, maybe it will be helpful for someone. - Check your WatchKit Extention target. - Uncheck…
doZer
  • 185
  • 1
  • 8
15
votes
1 answer

WatchOS snap to next row on scroll in WKInterfaceTable

Apple's own Activity app has an interesting feature that I try to re-implement in my own watch app: Each page in the activity app is scrollable and basically has 2 vertical pages. The first page is the circle and the second page shows more…
bluebamboo
  • 1,262
  • 10
  • 11
14
votes
6 answers

iOS - watchOS App publishing issue CFBundleIdentifier collision

After the app uploading I receive the following email We identified one or more issues with a recent delivery for your app, XXX. Please correct the following issues, then upload again. ITMS-90806: CFBundleIdentifier collision - Each bundle must…
cristallo
  • 1,951
  • 2
  • 25
  • 42
13
votes
2 answers

Struct 'State' cannot be used as an attribute

I have the following code in a ContentView.swift file: struct ContentView: View { @State private var selectedSpeed: Int = 1 var body: some View { Text("Hello World") } } I have simplified it for the sake of readability. I…
jjramos
  • 1,874
  • 14
  • 22
13
votes
1 answer

How to change "Cancel" button text in modal sheet view in SwiftUI on watchOS 7?

I have 2 simple views: import SwiftUI struct ContentView: View { @State private var showingModalView = false var body: some View { Button(action: { self.showingModalView.toggle() }) { Text("Show…
Igor R.
  • 399
  • 4
  • 23
13
votes
1 answer

Send Message to Apple Watch using WCSession in SwiftUI

I did a exmaple long time ago how to send a simple message from an iPhone to a Apple Watch using Swift: import UIKit import WatchConnectivity class ViewController: UIViewController, WCSessionDelegate { // MARK: Outlets @IBOutlet weak var…
Max
  • 175
  • 1
  • 6
13
votes
1 answer

Use NavigationLink programmatically in SwiftUI

I'm looking for a way to display a view in my WatchOS application "one level in" from the NavigationView on app startup if certain conditions are met. I want the same effect as if I would have pressed a NavigationLink myself, i.e being able to go…
heinz_dieter
  • 315
  • 1
  • 4
  • 12
13
votes
2 answers

How to start main iOS app from companion watch app in background?

Situation: Since our users have updated their iOS to 11 and/or WatchOS to 4, our iOS app doesn't seem to fire any scheduled timers when the app gets started by our WatchOS app. Maybe we are doing something wrong when starting our main app from the…
Thermometer
  • 2,567
  • 3
  • 20
  • 41
13
votes
5 answers

How to hide or remove the time from the Apple Watch status bar?

How do I hide or remove the small clock from Apple Watch statusbar screen on my app? I searched the web for this but found nothing! I just discovered that Apple will reject your app if you remove that clock, but my app is a watch face itself and…
Ahmadreza
  • 6,950
  • 5
  • 50
  • 69
13
votes
2 answers

Linking dual (iphoneos and watchos) frameworks with same product name

I recently had to duplicate my own frameworks to be able to link them from the native watchOS 2 extension, because the platform is different. So for every framework X I have an X-watchos counterpart. Everything works fine in the simulator and when…
NachoSoto
  • 1,743
  • 13
  • 17
11
votes
3 answers

Device-specific Layout with SwiftUI on Apple Watch and iPhone

Sometimes, I need to make device-specific adjustments to layouts. For example, I may need to reduce spacing on an iPhone with a smaller screen or increase spacing on the largest screens. With UIKit (and even Interface Builder) it was easy to make…
gohnjanotis
  • 6,513
  • 6
  • 37
  • 57
11
votes
2 answers

It is possible to use flutter to create something to Watch OS or Android Wear?

I'm studying some possibilities to use in my project, I would like to know if I can to communicate a Watch OS project with the IOS flutter project.
Cristiano Winter
  • 165
  • 1
  • 2
  • 6
11
votes
0 answers

What's the best way to sync authentication data between iOS and watchOS?

I've having issues synchronizing user credentials between iOS and watchOS. My basic set up is that my iOS app and watchOS app both need to talk to a backend server, and they both need an access token to do so. However, the user can only sign in on…
10
votes
3 answers

WatchKit 2.0 app's bundle ID person.bundle.Ropes.watchkitapp is not prefixed by the parent app's bundle ID followed by a '.'; expected prefix

When I use bundle id named like bellow. I have that error (My app bundle: ilyabiryuk.bundle.Ropes) But if I rename bundle like .watchkitapp It starts perfectly on simulator but give an error when I start it on my real watch(Series 3 42mm, watchOS…
1
2
3
82 83