watchkit

Can I keep my WatchKit App running in the background on the Apple Watch?

怎甘沉沦 提交于 2019-12-30 10:01:11
问题 I want to know if there is anyway to keep my WatchKit app running in the background, or if I can possibly program it to launch (i.e. transfer from inactive state to active state) once a certain condition is fulfilled? My app is running perfectly while the WK App is open and active, and it even runs fine when the iPhone is asleep, or when the parent iOS app is in BG mode. However, I really need my app to continue running in the background on the watch itself. Is this possible? 回答1: Not

Why does my WatchKit extension cause a “Waiting to attach” message on an actual Apple Watch but not in a simulator?

自闭症网瘾萝莉.ら 提交于 2019-12-30 06:44:21
问题 I have a published iOS app and am trying to add a WatchKit extension for it. For now, all I have is a watch interface.storyboard with a single label just to verify the entire building process. The app runs fine on the simulator (iPhone 6 (8.3)) and the Watch simulator . When I run it on the iPhone and Apple Watch, it runs on the iPhone, installs on the Apple Watch, but then just displays a wait status when trying to run it on the Apple Watch. The error in Xcode says "Waiting to attach" , and

Why does my WatchKit extension cause a “Waiting to attach” message on an actual Apple Watch but not in a simulator?

霸气de小男生 提交于 2019-12-30 06:44:10
问题 I have a published iOS app and am trying to add a WatchKit extension for it. For now, all I have is a watch interface.storyboard with a single label just to verify the entire building process. The app runs fine on the simulator (iPhone 6 (8.3)) and the Watch simulator . When I run it on the iPhone and Apple Watch, it runs on the iPhone, installs on the Apple Watch, but then just displays a wait status when trying to run it on the Apple Watch. The error in Xcode says "Waiting to attach" , and

Adding a watch app to a Flutter iOS application

北城余情 提交于 2019-12-30 06:29:23
问题 I have come across an issue when trying to create a Flutter iOS app with a watch app extension. For testing I have simply created a default Flutter app using flutter create watchapp When this is run I get the standard demo Flutter app. If I then open the ios/Runner.xcworkspace project in Xcode and add a new target to the project (File->New->Target) and selecting watchOS->Watchkit App it will generate the watch app. The problem I have come across is when running the app again (with flutter run

Binary Rejection - Invalid Watchkit Support

拥有回忆 提交于 2019-12-30 02:24:27
问题 We develop Watchkit app about 1.5 month, and we used Xcode 6.2 beta2,beta4, Xcode 6.3 beta to develop before and now use Xcode 6.2 (6c131e) to develop We use Xcode 6.2 (6c131e) to archive our project , and use Application loader to submit our app. And then we received the rejection: "The bundle contains an invalid implementation of WatchKit. The app may have been build or signed with non-compliant or pre-release tools. Visit developer.apple.com for more information. " anyone help me , thx.

Apple Store submit fails with Error ITMS-90046, but Associated Domains is not among entitlements

放肆的年华 提交于 2019-12-30 02:08:09
问题 When I first built my app & Watchkit app, I had the "Associated Domains" capability enabled. I've disabled it in the "Capabilities" panel of both the watchkit extension and the companion app, and confirmed that the key is gone from each info.plist. I have gone to Apples' "Certificates, Identifiers and Profiles" page, selected the App ID for each the Watchkit App, The Extension, and the App, unticked "Associated Domains", regenerated the provisioning profiles for each, downloaded and installed

Gesture recognition in Apple Watch (WatchKit)

China☆狼群 提交于 2019-12-29 07:52:10
问题 I'm looking for how to detect gestures in an Apple Watch app, via the WatchKit SDK. In iOS we can use some code like this: - (void)viewDidLoad { ... UISwipeGestureRecognizer *swipeRightBlack = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(slideToRightWithGestureRecognizer:)]; swipeRightBlack.direction = UISwipeGestureRecognizerDirectionRight; [self.viewBlack addGestureRecognizer:swipeRightBlack]; } ...but this doesn't work in the Apple Watch simulator. Is there a way

Can I create a WatchKit app without a storyboard (entirely in code)?

时光总嘲笑我的痴心妄想 提交于 2019-12-29 07:25:22
问题 My team is currently working on an iOS application in which we don't use storyboards at all. We create the UI in code instead. So for consistency's sake it would be great if we could create a Watch App target entirely in code. However, both the "Getting started with WatchKit" video and WatchKit Framework Reference mention that you need a storyboard for the Watch App target. Furthermore, in WKInterfaceObject.h the init method is marked as unavailable: - (instancetype)init NS_UNAVAILABLE; So is

Running Apple Watch in iOS simulator issue

不羁的心 提交于 2019-12-29 05:53:12
问题 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? 回答1: 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. 回答2: 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

Running Apple Watch in iOS simulator issue

馋奶兔 提交于 2019-12-29 05:53:09
问题 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? 回答1: 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. 回答2: 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