apple-watch

Can a real iOS device and Watch Simulator communicate for Testing purposes

走远了吗. 提交于 2019-12-05 03:14:06
I want to create a watch app for an existing iOS app. But I am in a situation that i don't own a apple watch and my existing iOS app will run only on real devices not on simulator. Is it possible to run the app on the iphone device and test my watch app in the watch simulator? Dmytro Hutsuliak Pairing a real iPhone and a Watch simulator is not possible at least at the moment. I make this conclusion because of 3 reasons: A Watch simulator automatically pairs to an iPhone simulator during the installation process. It is not possible to unpair a Watch simulator from the interface at all.

Crashlytics / Fabric distribution of Watch-enabled iOS-App?

▼魔方 西西 提交于 2019-12-05 02:48:28
I sure am missing something obvious here - but no matter where I looked I found nothing to aid me here so I'll give it a try: I'm developing an (obj-c) app in wich I have integrated the Fabric / Crashlytics framework and wich I distribute to my testers via the fabulous Fabric-Site. That worked flawless for many, many versions. Now I have added AppleWatch-compatibility to my app via integration of WatchKit. All works fine. But distribution via Fabric to my beta-testers just won't work any more; The distributions site just states "You're all set for now. As soon as a new Build is ready..." and

Duplicating target for WatchOS2 with App and Extension on Xcode

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 02:44:34
问题 I have a project with a WatchOS2 target along with an Extension. I want to duplicate both the WatchOS App target and the extension. However, when I duplicate the WatchOS App target it is still linked to the old extension. Since we no longer have access to build phases for WatchOS App I cannot change it in the Embed App Extension Phase. Inital State WatchAppTarget1 (Embed Extension - WatchAppExtension1) WatchAppExtension1 Final State WatchAppTarget1 (Embed Extension - WatchAppExtension1)

Is heart rate raw data available for developers via WatchKit?

旧城冷巷雨未停 提交于 2019-12-05 00:50:33
Is it possible to develop third party apps using Apple's WatchKit with an API for heart beat/rate data access/raw data access? Is the WatchKit SDK publicly available for developers now? Heart Rate Raw Data information is now available in Watchkit for watchOS 2.0 . WatchOS 2 includes many enhancements to other existing frameworks such as HealthKit , enabling access to the health sensors that access heart rate and health information in real-time. You could check this information in the following session which is total 30 minutes presentation.If you do not want to watch entire session, then you

Apple Watch set background image

久未见 提交于 2019-12-04 19:03:28
问题 How can I programmatically set my WatchKit App background image? I need to set this in code as it changes depending on variable size and we need to place a label over the image. 回答1: It is not possible to programatically set the background image on an entire Watch App page in WatchKit... a background image for the whole page can at the current time only be set in Interface Builder it appears. However, you can set a picture as a background behind a label, and make that image fill the screen:

Dynamic Notification Interface will only work if the Watch app \ extension was opened at least once from the watch

冷暖自知 提交于 2019-12-04 18:17:40
问题 Currently there are 3 flavors of notifications in the Apple Watch: Short - You can't customize these at all. Static - You can customize these on the Storyboard. Dynamic - Can customize UI elements with new data not coming on the Notification payload. Here's the problem (The project is using Watch OS 1), if the app was never opened from the Apple Watch the Static notification will be displayed instead of the Dynamic one and the log will show the error Took too long to show custom notification.

WatchOS 2 (beta 5): watchAppInstalled returns false

霸气de小男生 提交于 2019-12-04 17:39:47
问题 The Watch App is installed on the watch and I can tap and run it on the Watch, but watchAppInstalled method returns false. Also, I can only install the Watch App using Xcode 7. If I try to install the Watch App using the Watch iOS app (from Apple) by turning on the switch, the Watch App gets deleted right after the installation completes. Update: This bug is fixed in Xcode 7 beta 6 回答1: Apple Documentation says: The session must be configured and activated before accessing this property. So,

The UIApplicationDelegate in the iPhone App never called reply

徘徊边缘 提交于 2019-12-04 17:29:44
问题 I am trying to launch my iPhone app from watch simulator using the below code : WKInterfaceController subclass [WKInterfaceController openParentApplication:[NSDictionary dictionaryWithObject:@"red" forKey:@"color"] reply:^(NSDictionary *replyInfo, NSError *error) { NSLog(@"replyInfo %@",replyInfo); NSLog(@"Error: %@",error); }]; AppDelegate.m - (void)application:(UIApplication *)application handleWatchKitExtensionRequest:(NSDictionary *)userInfo reply:(void(^)(NSDictionary *replyInfo))reply {

Display iPhone local notification in Apple Watch

喜你入骨 提交于 2019-12-04 17:15:18
I'm trying to display local notifications in Apple Watch. The implementation is done but I don't know how to pass local notifications to Apple Watch. How can I do this? If your iOS app supports local or remote notifications, Apple Watch displays those notifications at appropriate times. iOS it self decide to pass the notification to Apple Watch or show on iPhone, As you said the implementation is done so let the iOS handle it. and at this time you have to do nothing to pass it to Watch you can see the Apple documentation for more clarification. You can see here iOS takes care of notifications.

“Install of Apple Watch Application never finished” Error when deploying watch kit app to device

女生的网名这么多〃 提交于 2019-12-04 17:03:33
问题 So I got my new watch (yay!). I manually added its UDID to the developer portal and refreshed the provisioning profiles and I was able to push an archive to ITC for testing but now I want to run the app in debug on my watch itself. I try deploying the watch kit app target set to my phone as the device and it sits there and runs/ churns for a while and nothing happens. If I wait long enough, Xcode eventually errors with "Install of Apple Watch Application never finished" Has anyone run across