watch-os-2

iTunes Connect - Invalid Swift Support - The Watch OS application has Swift libraries at both

本秂侑毒 提交于 2019-12-03 07:48:14
问题 After archiving and uploading my app (using Xcode 7.2.1) to iTunes Connect I receive an email from iTunes Connect saying: Invalid Swift Support - The Watch OS application has Swift libraries at both /Payload/Today's Menu.app/TodaysReactiveMenuWatch.app/TodaysReactiveMenuWatch Extension.appex/Frameworks/ and /Payload/Today's Menu.app/TodaysReactiveMenuWatch.app/Frameworks/. Remove all of the Swift libraries from one of the locations and resubmit your app. My project contains an iOS app as well

Render a line graph on Apple Watch using watchOS 2

前提是你 提交于 2019-12-03 05:19:38
问题 I am trying to render a line/step graph on Apple Watch using watchOS 2. Unlike iOS 9, watchOS 2 doesn't support Quartz. It only supports Core Graphics. I tried writing some code to draw a line graph but I am getting an error "CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this

WCSession sendMessage:replyHandler error code 7014 (WCErrorCodeDeliveryFailed)

大城市里の小女人 提交于 2019-12-03 01:41:48
I have a Watch OS 2 application that communicates with the iOS app via WCSession method sendMessage:replyHandler:errorHandler: The iOS application reply correctly but time to time I get the error with code 7014 of domain WCErrorDomain : "Payload could not be delivered" It happens more often when the iOS application is not foreground. I do not find any solution of this problem, I hope one of you know a solution to this problem For anyone having issues on iOS10 beta 6 and GM, and you are using Swift3, the solution is to change the delegate function header in the iOS app to the following: func

HKWorkoutSession isn't keeping app at front of Apple Watch

ⅰ亾dé卋堺 提交于 2019-12-03 00:32:18
It has been stated that an app running a HKWorkoutSession will have special privileges over other watchOS 2 apps, so when a user looks at their Apple Watch, it will go to the view showing running a workout rather than the watch face. Currently, on both my device and simulator, this is not the case. If I start a HKWorkoutSession and then leave for 5 minutes and then interact with either the Apple Watch, or the Watch Simulator, it presents the watch face. If I then open my app, it appears to have been frozen, rather than terminated (which is what I imagine happens to other apps). As the UI will

iTunes Connect - Invalid Swift Support - The Watch OS application has Swift libraries at both

余生长醉 提交于 2019-12-02 21:29:10
After archiving and uploading my app (using Xcode 7.2.1) to iTunes Connect I receive an email from iTunes Connect saying: Invalid Swift Support - The Watch OS application has Swift libraries at both /Payload/Today's Menu.app/TodaysReactiveMenuWatch.app/TodaysReactiveMenuWatch Extension.appex/Frameworks/ and /Payload/Today's Menu.app/TodaysReactiveMenuWatch.app/Frameworks/. Remove all of the Swift libraries from one of the locations and resubmit your app. My project contains an iOS app as well as a watchOS app. All targets has the flag "Embedded Content Contains Swift Code" set to YES as all of

Render a line graph on Apple Watch using watchOS 2

倖福魔咒の 提交于 2019-12-02 18:36:53
I am trying to render a line/step graph on Apple Watch using watchOS 2. Unlike iOS 9, watchOS 2 doesn't support Quartz. It only supports Core Graphics. I tried writing some code to draw a line graph but I am getting an error "CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update." Following is the piece of code I used:

How to correctly implement transfer of settings from iOS app to watchOS2 complication

风流意气都作罢 提交于 2019-12-02 09:26:58
问题 What I want to achieve is the following: Complication(s) get updated in the background at intervals of 30 minutes Complication(s) get updated whenever the watch app runs and receives its own updated data Complication(s) get updated whenever the iOS app runs and the user changes a setting which affects the watch data (such as changing location of weather observations, or display units) Items 1. and 2. seem to be straightforward, and nicely addressed here: What is the flow for updating

Is it possible to connect Xamarin ios App to swift watchOS Extension

爱⌒轻易说出口 提交于 2019-12-02 07:11:14
问题 I already have a WatchOSExtension developed under swift, is it possible to connect it to a newely developed xamarin ios project? 回答1: No, it is not possible to use a Swift extension with a Xamarin app - this also applies to any form of iOS extension. You will need to redo your extension with Xamarin. Documentation for watchOS can be found here: https://developer.xamarin.com/guides/ios/watch/getting-started/ 回答2: I think the watch extension needs to be compiled into the the app bundle so I

How to correctly implement transfer of settings from iOS app to watchOS2 complication

和自甴很熟 提交于 2019-12-02 04:14:58
What I want to achieve is the following: Complication(s) get updated in the background at intervals of 30 minutes Complication(s) get updated whenever the watch app runs and receives its own updated data Complication(s) get updated whenever the iOS app runs and the user changes a setting which affects the watch data (such as changing location of weather observations, or display units) Items 1. and 2. seem to be straightforward, and nicely addressed here: What is the flow for updating complication data for Apple Watch? However, for item 3, in the iOS app, I set up a WCSession instance and call

Is it possible to connect Xamarin ios App to swift watchOS Extension

霸气de小男生 提交于 2019-12-02 02:51:14
I already have a WatchOSExtension developed under swift, is it possible to connect it to a newely developed xamarin ios project? No, it is not possible to use a Swift extension with a Xamarin app - this also applies to any form of iOS extension. You will need to redo your extension with Xamarin. Documentation for watchOS can be found here: https://developer.xamarin.com/guides/ios/watch/getting-started/ I think the watch extension needs to be compiled into the the app bundle so I dont think this can be done (compile swift code into c#, i may be wrong). They also need references to each other