watchkit

MinimumOSVersion error while submitting Apple Watch app [duplicate]

醉酒当歌 提交于 2019-12-18 09:36:35
问题 This question already has answers here : WatchKit app submission failure; MinimumOSVersion (2 answers) Closed 3 years ago . I am trying to submit my app, but am seeing this error message: ERROR ITMS-90455 "Invalid WatchKit App Bundle. The value '2.1' for the MinimumOSVersion key in info.plist in bundle {redacted}.watchkitapp is not supported" I have updated Xcode but it still doesn't work. UPDATE: I have always the same error message with your settings. 回答1: Try to set your minimum os version

Playing videos in WatchKit app

狂风中的少年 提交于 2019-12-18 09:08:31
问题 I've read some posts, but I don't find the answer I need: is it possible to play a video file or a video from a URL in a WatchKit app? 回答1: The current version of WatchKit (8.2) does not provide support for video. It is possible to create an animated series of images and play them on the Watch, but storage and transmission costs likely mean that this "video" would be short and at a low frame rate. It has been speculated that this is the kind of technique they used to show the garage door

Call external function using WatchKit force touch MenuItem

拈花ヽ惹草 提交于 2019-12-18 08:25:39
问题 I need to implement a WatchKit force-touch MenuItem to call a saveWorkout() method that is located in a separate class that does not subclass WKInterfaceController . I realize that every class needs at least one designated initializer. I am guessing this is the key? Btw, my " saveSession() reached " print statement logs to the console when using the sim but not when I use a device. All other print statements log to the console even when using the device. A bit odd. My attempts at

Call external function using WatchKit force touch MenuItem

孤者浪人 提交于 2019-12-18 08:25:09
问题 I need to implement a WatchKit force-touch MenuItem to call a saveWorkout() method that is located in a separate class that does not subclass WKInterfaceController . I realize that every class needs at least one designated initializer. I am guessing this is the key? Btw, my " saveSession() reached " print statement logs to the console when using the sim but not when I use a device. All other print statements log to the console even when using the device. A bit odd. My attempts at

How to programmatically open Apple Watch companion app from iOS app

家住魔仙堡 提交于 2019-12-18 07:05:32
问题 I would like to give a hint to the user, that my iOS app supports the Apple Watch. So I would like to link/open the Apple Watch companion app from within my iOS app, very much similar to opening the Settings App using ( [[UIApplication sharedApplication] openURL: [NSURL URLWithString:UIApplicationOpenSettingsURLString]]; ) This shall enable the user to directly navigate to the Watch companion app to setup my app for the watch. I could not find any URL which would open the companion app in

No matching provisioning profiles found for WatchKit extension when submitting to App Store

久未见 提交于 2019-12-18 05:57:23
问题 I'm using xcode 6.3 xcode had created a provisioning profile "xxx.xxx.xxx.watchkitextension" automatically, in the code signing of watchkit extension target, I've tried choosing this profile or leaving it Automatic, they all giving me this error "Failed to locate or generate matching signing assets" when I submit it to App Store. Any ideas? thanks. 回答1: This problem looks similar to this question. Submit WatchKit Provisioning Error I had the same problem. Here is the solution that worked for

settings bundle not working on watchOS 2

筅森魡賤 提交于 2019-12-18 05:54:09
问题 This was NOT a problem on watchOS 1, but now on watchOS 2 I cannot read the values on the watch extension. According to Apple docs, it is possible. According to some people on this thread, it is possible. According to an Apple employee on this thread, it is possible. I'm setting everything up correctly as far as I can tell: I enabled App Groups on both iOS app and watch extension with the same identifier. I added Settings-Watch.bundle to the iOS app and added the

Apple Watch Images not showing on simulator

霸气de小男生 提交于 2019-12-18 04:52:45
问题 I am working with the apple watch and I would like to just simply set an image in the storyboard. It is a png file and I set it in the storyboard, but it doesn't show up in the simulator. I have tried all of the aspect and fitting options. I believe the view is called a wkinterfaceimage. I have also tried adding programmatically and that does not show up either. Hidden is not checked. Any ideas of what I might be missing? 回答1: If you have your image included as a file in your app's bundle

HKWorkoutSession: Not getting Heart Rate when screen is turned off in watchOS 2

会有一股神秘感。 提交于 2019-12-18 04:23:25
问题 I am using iOS 9 beta 4 and watchOS 2 beta 4. I can't seem to get any heart rate data when the watch screen turns black (locks). I will get a call to applicationWillResignActive and then the heart rate data just stops. It seems that the sensor is deactivating after some time as well (not green anymore), when the screen locks. Anyone else seeing this behavior? I can post my code for initing the WorkoutSession if anyone else getting heart rate data when the screen on the watch is locked. 回答1:

How to transfer a UIImage using Watch Connectivity

ε祈祈猫儿з 提交于 2019-12-18 02:49:11
问题 How can I transfer an UIImage over WatchConnecitivity from the iPhone to the Apple Watch with no user interaction on the phone, and only loads because the watch calls for it programmatically. I need this because the image processing to create the UIImage uses logic unavailable in the Watchkit API, so it must be created from the phone. I have seem some examples of Watch Connectivity using: func startSession() { session?.delegate = self session?.activateSession() } However, I am new to watch