I am trying to add a watch target in my existing project using XCode 15.1 but I am not able to see any watch simulators for this to run my watch app. I created a small sample project separately where I can see watch simulators reflecting in the run destination. Can somebody please help me to locate which property or setting I need to check which is disabling XCode to show watch simulators? I have downloaded the watch simulator.
Apple Watch
RSS for tagDiscuss hardware-specific topics related to Apple Watch.
Posts under Apple Watch tag
77 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
I am receiving an error message trying to connect an apple watch to my phone. Error message reads:
Could not sign in
Operation throttled by server. Retry after 3599 seconds (other operations may be allowed)
Has anyone experienced this error message before and know how to resolve it?
Apple Watch SE
I'm trying to add complications to an existing app via the directions of
https://developer.apple.com/documentation/clockkit/deprecated_articles_and_symbols/creating_complications_for_your_watchos_app/enabling_complications_for_your_watchos_app
however, Xcode 15 does not have "Complications Configuration" in the Project menu so I can't put in the correct info for "Data Source Class" and "Complications Group". Can someone direct me where to go for up to date information regarding how to do this in Xcode 15?
Hi experts,
I got an Ultra2 a while ago and has been using it on walking / running exercise.
Recently I came across to this apple site: debug profile and I'm curious about what I would get during the exercise.
So I follow the instruction and install the location services profile. After getting the sysdiagnose report, I try to get location related information from it. And it seems that the log from "locationd" and "gpsd" are what I'm looking for.
But when I try to look into the nmea information, I found out the sysdiagnose only provide around 10-15 mins of nmea data.
For example, let's say I have a walking exercise from 0900 - 1000, but I can only see nmea data from 0945 - 1000. The data from 0900 to 0945 can't be found in the sysdiagnose.
Not sure if's the limitation or any setting I can change to increase the logging period?
Thanks.
let hotspotConfig = NEHotspotConfiguration(ssid: "SSID", passphrase: "PASSWORD", isWEP: false)
hotspotConfig.hidden = true
let hotspotMgr = NEHotspotConfigurationManager.shared
hotspotMgr.apply(hotspotConfig) { error in
}
This works on the watchos before, but does not work on the latest watchos 10.2, if given incorrect password, the error returns .invalidWPAPassphrase, it's right. However, when given the correct password, the error returns .unknown and no wifi connect request alert shows on the watch.
The code works ok on the iPhone, but not works on the watchos.
Hi, sorry if the sentence is wrong as I am using the translate function.
I am looking to create an AR application using Nearby Interaction and ARkit.
The devices to be used are iPhone 15pro and apple watch 9.
The iPhone implementation will measure the distance to the apple watch while simultaneously using AR to track images.
The apple watch implementation will only measure the distance to the iPhone.
Is it possible to implement this feature?
If you know of any, I would like to know.
I know it is not a developer question, but getting the answer may help understand what we can get or not get on Apple Watch after Watch10.
Since WatchOS10.2 when swiping face, time is always displayed first as 10:09:31 before setting the correct time one second later. Just in the same way as a long press. But the interest of swipe is to have immediately a different face displaying the correct time.
Why is it so ? Is it due to (probably) now using SwiftUI ? Or is it a quick fix, reusing most of code for Lon,g press case ?
It did not behave so with WatchOS 9 or before. Is there a setting to change ? It is really inconvenient (and ugly).
I filed a bug report: FB13466486
Hi,
I have been testing an Apple Watch only app on simulator wth no issues.
Decided today to try on a device. It builds and deploys then crashes with about with payload.
libsystem_kernel.dylib`:
0x472b81d8 <+0>: mov x16, #0x209
0x472b81dc <+4>: svc #0x80
-> 0x472b81e0 <+8>: b.lo 0x472b81fc ; <+36>
0x472b81e4 <+12>: stp x29, x30, [sp, #-0x10]!
0x472b81e8 <+16>: mov x29, sp
0x472b81ec <+20>: bl 0x472ad490 ; cerror_nocancel
0x472b81f0 <+24>: mov sp, x29
0x472b81f4 <+28>: ldp x29, x30, [sp], #0x10
0x472b81f8 <+32>: ret
0x472b81fc <+36>: ret
Can anyone shed light on what this might be?
I have 5 packages one of which is a 'c' lib. Do not have issues running these on an iOS device however.
I have an NFC door, but I always have to enter a pin, and I have thought, "Can I unlock this using an NFC on my Apple Watch, Apple AirTag, or iPhone, since they all use NFC?" It seems it would save so much time, yet I do not know if there is an app/program that I could use, much less how to program it to trigger. Please reply if you have a response.
Hello,
i have turned off the Auto-Launch Audio Apps on Ultra Watch but each time i play music on Car Play, the player is mirrored to the watch.
can you please advise?
thanks
Hi.
I am pairing my Apple Watch Series 3 to my iPhone running ios 17. The pairing is successful but unable to proceed with the set up because an update is needed to be downloaded first. I updated the os for watch but I keep on getting “Unable to Check for Update - Checking for a software update failed because you are not connected to the internet”. I am definitely connected to the internet.
No other iphone is paired.
I've tried all solutions proposed in the forum but none worked..
have a watchOS app and it’s iOS counterpart in the AppStore. For now, my app support iOS 15 and watchOS 8.
The next version will make a huge step forward and only supports iOS 17 and watchOS 10.
I have a question :
If someone has an iPhone on iOS17 and a watch on watchOS 8, will the AppStore update the app ?
It will be incompatible as the new iOS app won’t work with the old watchOS one.
I hope the AppStore won’t propose the update in this case to avoid impacting users with a modern iPhone and an old Apple Watch who can continue with the previous app version. What’s your advice ?
I faced the problem that I could not enable notifications for an app that works only on the apple watch. When a modal window appeared asking for permission to send notifications, I declined it. Now I can't find where to enable them.
Related to this thread https://developer.apple.com/forums/thread/737819
I can confirm (again) that GPS performance on the watch Ultra (and likely all watches on watchOS 10) had been severely degraded.
Here is a swim that I did with both an Apple Watch Series 4 on watchOS 9 (green track) and a watch Ultra on watch OS 10.1 (blue track).
While the Series 4 provides relatively accurate data, the Watch Ultra provides very poor data with criss crossing paths and ridiculous data points.
Apple did respond to my feedback with the usual request for sysdiagnose but this has not progressed. FB13192409
I recently bought an Iphone 15 Pro and own apple watch series 3. I just wanted to post about how throughly disappointed I am with the apple watch software.
There has been numerous problems trying to synch my watch to the new phone. Error messages are so unintuitive. Finally I updated to watchOS 10. Still wasn't easy, but finally got it done. You guys make it so easy for everything, except the watch
watchOS 10 is really doing weird stuff. I was supposed have many watch faces but can't scroll through them. The phone is supposed to unlock with my Iphone but it isn't. Every time I look at it it wants a passcode. I can't add my credit card to my wallet in the watch and error messages won't even tell me why. To name a few.
Have you guys given up old the old watch series or what?
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)
}
}
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,
Has anyone else seen this issue?
When the Action Button on an Apple Watch Ultra 2 is connected to a Shortcut, it seems to run the shortcut twice. I'm on watchOS 10.0.2.
A user of an app I built reported the issue, which is how I knew about it in the first place.
I'm wondering if it's an issue on my watch specifically, or if many other people are seeing the same thing.
I replicated the issue using a fresh project, and it only seems to happen when the shortcut responds with dialog.
Does anyone know why this is happening and how to fix it? The shortcut with a dialog response works fine everywhere else, and only exhibits this behavior when run with the Action Button.
Here is the full code with instructions to replicate the issue, so I'm curious if other people see the same thing:
// When running a shortcut that returns dialog
// with the Apple Watch Ultra Action Button,
// the shortcut runs twice.
// Create a new iOS project and add this:
import AppIntents
// AppIntent
struct LogEventNow: AppIntent
{
static var title: LocalizedStringResource = "Log an Event"
@MainActor
func perform() async throws
// -> some IntentResult
// When just returning a successful result with .result(),
// the shortcut only runs once as expected
// Add ProvidesDialog to be able to return .result(dialog:)
-> some IntentResult & ProvidesDialog
{
let loggedDate = Date()
let formattedLoggedDate =
loggedDate.formatted(date: .omitted,
time: .complete)
// Print the time of the event that was logged
print(formattedLoggedDate)
// This gives the expected result
// Shortcut runs once, and prints one time to the console
// return .result()
// This gives unexpected result
// Shortcut seems to run twice
// and prints two date a 1–2 seconds apart
return .result(dialog: "Successfully logged.")
}
}
// AppShortcut
// This makes it show up in the Shortcuts app
struct EventShortcuts: AppShortcutsProvider
{
static var appShortcuts: [AppShortcut]
{
AppShortcut(
intent: LogEventNow(),
phrases: ["Log in \(.applicationName)"],
shortTitle: "Log Event Now",
systemImageName: "calendar"
)
}
}
// Steps to reproduce the issue:
// - Long press the AppShortcut in Shortcuts app
// - Tap "Add to Shortcut"
// - Tap the "i" at the bottom
// - Turn on "Show on Apple Watch" toggle
// - Open the Watch app on iPhone
// - Tap "Action Button"
// - Under "Action" choose "Shortcut"
// - Select the Shortcut that was created in the Shortcuts app
// - Push the Action Button and observe two dates printed to the console
// Sometimes I'm also seeing "Remote execution timed out" on Apple Watch a minute or so after the shortcut has run, but only when leaving the Shortcuts app open after it runs from the Action button.
Hello,
I'd love to know if there's a way to prevent people from sharing my custom .watchface files.
I know it's easy to share them, what I want to know is if there's any way to prevent it (such as licensing my creations or any way I couldn't think of).
Thank you!
I am unable to get past pairing with apple watch without signing in using apple id to connect messages to the watch but cant sign in with apple id because the watch is not updated but the watch cannot update because it is too old (series 3). And it did do an update when I first paired it. And now it's not attempting to update anymore. And there is no way to access settings on the watch. And there seems to be no way around the messages apple Id screen.