watchos-5

iOS WatchOS5 - how to detect programmatically if Apple Watch was on the wrist (worn) at specific time interval?

与世无争的帅哥 提交于 2020-01-24 19:25:47
问题 I'm interested if there is some HealthKit or other data source I can query to know if the Apple Watch was worn/in contact with the wrist at a given time interval. Currently I'm relying on HealthKit query for HeartRate and it appears that if I get no heart rate readings within a certain window, then the watch was most likely off the wrist or charging. Is there a better way to detect if the Apple Watch was worn on the wrist? The problem with this method is that it is not very descriptive - if

Missing architecture. Apps built with Watch OS 5.0 and later SDKs must contain additional architectures

余生颓废 提交于 2019-12-22 18:07:46
问题 ERROR ITMS-90733 The WatchApp target is using “armv7k” under valid architectures; and the WatchApp Extension is using both “armv7k” and “i386” under valid architectures. When I build and try to deploy and build to the AppStoreConnect, I get the error message attached in this post. I tried several combinations of arm64_32, armv7, and armv64 but no luck! Any help is much appreciated. Thank you. 回答1: try add arm64_32 architecture in your watch extension build setting, not watch . 回答2: I solved