apple-watch

How to get Apple Watch Unique id or UDID?

风格不统一 提交于 2019-11-29 09:09:22
I want to get Apple Watch unique id. Is there anything available like UDID or unique identifier for developers? There should be a way with Xcode 8...but I can't find it. My solution for now: launch "Accessibility Inspector", click "Start inspection follow point" button (the one in the middle, kind of cross-hairs), click in Xcode on top of the UDID value and then copy the UDID from the inspector shown values. David It turns out you also have to add the UDID of the Apple Watch to the Apple Developer Portal, and update your Development provisioning profile to include this UDID. The UDID can be

HKWorkoutSession: Not getting Heart Rate when screen is turned off in watchOS 2

随声附和 提交于 2019-11-29 04:46:35
I am using iOS 9 beta 4 and watchOS 2 beta 4. I can't seem to get any heart rate data when the watch screen turns black (locks). I will get a call to applicationWillResignActive and then the heart rate data just stops. It seems that the sensor is deactivating after some time as well (not green anymore), when the screen locks. Anyone else seeing this behavior? I can post my code for initing the WorkoutSession if anyone else getting heart rate data when the screen on the watch is locked. Starting in watchOS 3.0 you can add the WKBackgroundModes entry with the workout-processing value to the

Running Apple Watch in iOS simulator issue

陌路散爱 提交于 2019-11-29 03:18:42
I'm trying to run the Apple WatchKit Catalog example code in iOS simulator. But i have always Apple Watch simulator disabled. What i have to do? Apple Watch is only supported with iPhone 5 and newer phones. Make sure you are running a simulated device that supports pairing with an Apple Watch. Go here and click on your app name, in my case it is "watch kit test" Then click on edit scheme and then this view should show up. Make sure to go to executable and click on "yourappname.app Finally close it and go back to the menu in the first step and click "Your App Name" Watch App Then run your app

Failed to install app error: Invalid Bundle - No Apple Watch Binary

折月煮酒 提交于 2019-11-29 01:52:53
I'm trying to develop an extension of my app for the Apple Watch. Instead of install the app on the watch, I have this error: AppName Failed to install AppName, error: Invalid Bundle - No Apple Watch Binary In my info.plist files... For the extension, I have: <key>CFBundleIdentifier</key> <string>com.mycompany.AppName.watchkitextension</string> <key>WKAppBundleIdentifier</key> <string>com.mycompany.AppName.watchkitapp</string> For the WatchKit app, I have: <key>CFBundleIdentifier</key <string>com.mycompany.AppName.watchkitapp</string> <key>WKCompanionAppBundleIdentifier</key> <string>com

Access workout data even when apple watch screen turn off

霸气de小男生 提交于 2019-11-29 00:42:56
I success to get heart rate data in live without workout session on apple watch os 2. But when apple watch screen turn off, my completion block is not anymore called. I would like to continue to manage these data in live and to make my phone ring when heart rate is too low. Maybe i can let the app on the iphone perma open and maybe it can access to the healthkit data during this workout ? Do you think this can work ? or do you have another idea ? Regards Arsene Huot Hey i found a solution : i keep iphone app in foreground with : [UIApplication sharedApplication].idleTimerDisabled = YES And

Can I build my own networking framework (which is dependent on AFNetworking) as a watchOS2 framework?

爱⌒轻易说出口 提交于 2019-11-28 23:46:43
I've been trying to modify my project to support WatchOS2 architecture. Currently I have a networking framework that is based on AFNetworking. I've been using it with my watch app so far. Now I'm trying to build the framework for watchos/watchsimulator platforms. What I'm getting is 'SystemConfiguration/SystemConfiguration.h' file not found error for some AFNetworking classes. I know that system configuration is not one of the available system frameworks for watchOS2. And for networking apple says : Networking Support for network-based operations includes the following technologies: WatchKit

Apple Watch: Status bar not visible after presenting a modal screen from page based navigation

五迷三道 提交于 2019-11-28 23:45:10
When i present a modal screen from a page in page based navigation, the whole screen shifts up and the status bar is no longer visible. Here is a gif of the issue: I am using xCode 6.2 version. This was not happening in xCode 6.2 Beta 4.. I am not sure if this is a simulator issue or this will actually happen on a real device too. Does anyone have the same issue? Is there a workaround? I reported a bug to apple (20109240) and it was marked as a duplicate of (19862945), and that one is still open. Thanks in advance This is a known issue in the final release that exhibits itself in two cases:

watchOS 2: haptic feedback in background

穿精又带淫゛_ 提交于 2019-11-28 23:27:00
I think I know the answer to this question already, but I wanted to ask just to be thorough. Consider the Apple Watch built-in Maps app. When you're using turn-by-turn directions, when it's time to turn left or right, the watch plays a custom haptic pattern - even though the screen is off and the app is backgrounded. Another example is while you're doing a workout - if you've set a goal, you'll get a light tap on your wrist when you get 50% there and 100% there, even if you're not looking at the watch at the time (screen off, app backgrounded). In watchOS 2, is there any way for us 3rd party

In Xcode I see (no paired Apple Watch) even though the watch is paired and the watch's UDID is registered

孤者浪人 提交于 2019-11-28 22:12:55
My phone is listed as an ineligible target in Xcode and out to the side it says ( no paired Apple Watch ). My Apple Watch is registered under iOS Devices. I can see the UDID. The watch has watchOS 2.0 installed and my iPhone 6 has iOS 9 installed. The iPhone pairs just fine with the watch and I can install apps. I've tried rebooting both the watch and the phone. I've tried rebooting Xcode. I tried creating a new scheme in Xcode but it still shows (no paired Apple Watch). I can choose Product/Destination and the app will show up on the phone, it just won't install the watch app...just sits

Creating progress circle as WKInterfaceImage in Watch App

时光毁灭记忆、已成空白 提交于 2019-11-28 20:45:49
I am trying to create a progress circle for the Apple Watch version of my app. I know that we aren't able to use UIViews (which would make things so much easier!) so I am looking for alternatives. Basically, I would like to create one of these prototypes: The way I was hoping to do things was to add the background layers as a normal WKInterfaceImage and then the progress arrow/line on top as a WKInterfaceImage that rotates around the circle based on the percentage calculated. I have the percentage calculated so basically, what I am looking for is some help with the math code for rotating the