Post

Replies

Boosts

Views

Activity

watchOS Simulator Version 14.0.1 (986.3) not syncing HealthKit from iPhone to paired Apple Watch
I have a project that's been on the App Store for more than a year. I used to do ASC screenshots and debugging on Simulator with a few Watch Simulators (screen sizes) paired to one iPhone simulator sharing the same HealthKit example data and settings like units and regions / languages. Since updating to Xcode 14 I can't get the HealthKit related data and settings to sync between and iPhone Simulator and it's paired watch Simulators. Any idea what I am doing wrong now? I should note that my project is still using iOS App, WatchKit App and WatchKit Extension. I haven't yet switched to single-target WatchApp.
1
0
1.1k
Oct ’22
Neither getCurrentTimelineEntry nor getLocalizableSampleTemplate get called by Complication Controller
I have an iPhone with Watch Project, I was getting good results on my Complications but lately they don't want to update… When I build and run on my iPhone the new Watch build gets transferred to the paired watch and is running there fine. Almost: it refuses to update the Complications. After Watch restart I only get ----- My server correctly tells me that I have two active complications on the current watchFace and I am calling server.reloadTimeline(for:) on both of them but the getCurrentTimelineEntry function never gets executed by the server. Neither does the getLocalizableSampleTemplate When I remove the App from the Watch, restart the Watch and then put the App back on the Watch using the iPhone's Watch App -- then it works, but only about 3 minutes after starting the Watch App on the Watch. During these 3 minutes my app's complications are only --. I can't ship it like this… My hunch is that somewhere the complication controller crashes, but it doesn't take my app down with it and thus my complications don't work any more. All other apps' complications do update alright though. Now my question is: is that a bug in Xcode, in WatchOS, or in my code? Will this happen when I first deploy my app on the App Store or will it be an issue with updates via App Store? Is this only relevant for my "local" build? Any hints where to hunt this bug?
1
0
2k
Oct ’22
SF Symbol using string interpolation
I was very happy when I saw this: "You can embed a symbol inside a run of text by using string interpolation." Text("Thalia… \(Image(systemName: "chevron.forward"))") Unfortunately this is a feature of SwiftUI and not generally available string interpolation. In places where a string is expected like an Apple Watch Compilcation Text Provider CLKSimpleTextProvider(text: "\(Image(systemName: "heart"))") this doesn't return an inline Image but "Image(provider: SwiftUI.ImageProviderBox<SwiftUI.Image.(unknown context at $18487da20).NamedImageProvider>)" So… Is there a way to include an SF Symbol in a regular string to wiggle it into a CLKSimpleTextProvider?
2
0
3.4k
Dec ’21
watchOS Simulator Version 14.0.1 (986.3) not syncing HealthKit from iPhone to paired Apple Watch
I have a project that's been on the App Store for more than a year. I used to do ASC screenshots and debugging on Simulator with a few Watch Simulators (screen sizes) paired to one iPhone simulator sharing the same HealthKit example data and settings like units and regions / languages. Since updating to Xcode 14 I can't get the HealthKit related data and settings to sync between and iPhone Simulator and it's paired watch Simulators. Any idea what I am doing wrong now? I should note that my project is still using iOS App, WatchKit App and WatchKit Extension. I haven't yet switched to single-target WatchApp.
Replies
1
Boosts
0
Views
1.1k
Activity
Oct ’22
Neither getCurrentTimelineEntry nor getLocalizableSampleTemplate get called by Complication Controller
I have an iPhone with Watch Project, I was getting good results on my Complications but lately they don't want to update… When I build and run on my iPhone the new Watch build gets transferred to the paired watch and is running there fine. Almost: it refuses to update the Complications. After Watch restart I only get ----- My server correctly tells me that I have two active complications on the current watchFace and I am calling server.reloadTimeline(for:) on both of them but the getCurrentTimelineEntry function never gets executed by the server. Neither does the getLocalizableSampleTemplate When I remove the App from the Watch, restart the Watch and then put the App back on the Watch using the iPhone's Watch App -- then it works, but only about 3 minutes after starting the Watch App on the Watch. During these 3 minutes my app's complications are only --. I can't ship it like this… My hunch is that somewhere the complication controller crashes, but it doesn't take my app down with it and thus my complications don't work any more. All other apps' complications do update alright though. Now my question is: is that a bug in Xcode, in WatchOS, or in my code? Will this happen when I first deploy my app on the App Store or will it be an issue with updates via App Store? Is this only relevant for my "local" build? Any hints where to hunt this bug?
Replies
1
Boosts
0
Views
2k
Activity
Oct ’22
SF Symbol using string interpolation
I was very happy when I saw this: "You can embed a symbol inside a run of text by using string interpolation." Text("Thalia… \(Image(systemName: "chevron.forward"))") Unfortunately this is a feature of SwiftUI and not generally available string interpolation. In places where a string is expected like an Apple Watch Compilcation Text Provider CLKSimpleTextProvider(text: "\(Image(systemName: "heart"))") this doesn't return an inline Image but "Image(provider: SwiftUI.ImageProviderBox<SwiftUI.Image.(unknown context at $18487da20).NamedImageProvider>)" So… Is there a way to include an SF Symbol in a regular string to wiggle it into a CLKSimpleTextProvider?
Replies
2
Boosts
0
Views
3.4k
Activity
Dec ’21