Invalid Device State – Xcode/iOS Simulator error
Force Quit xCode and restart will resolve problem.
Force Quit xCode and restart will resolve problem.
Select your project settings and go to “TARGETS”. Click on your Watch Kit App, select Build Settings. For the key “iOS Deployment Target” you should find “iOS 8.3”. For some reason Xcode 6.3 Beta 4 wants to have this on “iOS 8.2” for “Debug” and “Release”. Now your project should build as expected. This is … Read more
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 obtained in Devices window of Xcode. After pairing, the info of the Apple Watch will automatically display below the info of your … Read more
The distinction between these two WCSession methods involve when the data is sent, and whether the watchkit extension is woken up or not. transferCurrentComplicationUserInfo: is specifically designed for transferring complication user info meant to be shown on the watch face right now. The complication user info is marked “Urgent”, and is placed at the front … Read more
This applies to OS 1 only. See below for better answers. I got it working using your method. I guess there’s a couple of things you can check: 1) Are you synchronising the defaults after you set the value: defaults?.synchronize(); NSLog(“%@ “, defaults?.dictionaryRepresentation()) 2) Have you enabled the App Group in both your app and … Read more
Well, I would not recommend you using anything, related to network operations on watch itself. First of all because Apple does not recommend to do it for obvious reasons. The only network thing that is performed on the watch directly is loading images. I have been struggling with network operations and watch for like a … Read more
WatchConnectivity First the two classes that are supposed to communicate with each other (iOS and watchOS) need to conform the <WCSessionDelegate> and #import the WatchConnectivity framework Before you can send data you need to check if your device is able to send data if ([WCSession isSupported]) { WCSession *session = [WCSession defaultSession]; session.delegate = self; … Read more