apple-watch

uploading iOS app with watch 2.0 give ITC.apps.preReleaseBuild.errors.invalidBinary

≡放荡痞女 提交于 2019-12-10 11:25:49
问题 I'm working on iOS app with watch using xcode 7.0 by after upload version to iTunes give ITC.apps.preReleaseBuild.errors.invalidBinary . How I can solve this problem? 回答1: Create Xarchieve file by using Xcode, click product->archive Used this to create archive file and than uploaded using xcode instead of application loader. 来源: https://stackoverflow.com/questions/33892431/uploading-ios-app-with-watch-2-0-give-itc-apps-prereleasebuild-errors-invalidbin

FBSOpenApplicationErrorDomain error 3 when trying to launch a watch kit app on a physical device

狂风中的少年 提交于 2019-12-10 03:54:27
问题 I get the same problem that is described in this question. However, that problem dealt with the iOS simulator, not a physical device. I'm not using the iOS Simulator. I'm deploying to an iPhone + Apple Watch. If I attempt to run it on the simulator, it works just fine. On the "Running WatchKit App on Apple Watch" build step, I get the following error: Error Launching 'WatchKit Extension' The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 3.) What I've tried: I tried

Xcode 8, cannot pair watch simulator

拈花ヽ惹草 提交于 2019-12-09 16:50:39
问题 I'm running Xcode 8 beta 5. My app has a watch extension. I cannot pair the iPhone simulator with the watch simulator. I've followed the instructions for pairing (Xcode, Window, Devices) but there are no watch simulators listed there, nor are any listed when I select any of the iPhone simulators. I've tried variations of Add Simulator, but I only get more iPhone simulators -- I never see a watch simulator or a pairing there. The watch simulator exists -- I can launch the simulator, but it isn

How do I force-quit an individual app on an actual Apple Watch (not in the simulators)?

ぐ巨炮叔叔 提交于 2019-12-09 12:43:28
问题 When developing an app, it is sometimes useful to force-quit an application without having to re-start the entire device. On my iPhone, I can force-quit the active app by double-clicking the home button and swiping the app to the top. For the actual Apple Watch (not the simulators), force-quitting an app is particularly useful since there are sometimes connection problems between Xcode and the watch app. Also, sometimes I would like to force-quit my Apple Watch app when it is not connected to

Using environmentObject in watchOS

独自空忆成欢 提交于 2019-12-09 08:28:28
问题 I am trying to use environmentObject in a watchOS6 app to bind my data model to my view. I have created a simple, stand-alone Watch app in Xcode 11. I created a new DataModel class import Combine import Foundation import SwiftUI final class DataModel: BindableObject { let didChange = PassthroughSubject<DataModel,Never>() var aString: String = "" { didSet { didChange.send(self) } } } In my ContentView struct I bind this class using @EnvironmentObject - struct ContentView : View {

WCSession - PayloadTooLarge

爱⌒轻易说出口 提交于 2019-12-09 07:34:25
Apple Documentation shows: PayloadTooLarge - An error indicating that the item being sent exceeds the maximum size limit. This type of error can occur for both data dictionaries and files. Available in watchOS 2.0 and later. Does anyone know what the max size limits are for both these methods are for transferring data from the watch to the phone?: func transferUserInfo(_ userInfo: [String : AnyObject]) -> WCSessionUserInfoTransfer and func transferFile(_ file: NSURL, metadata metadata: [String : AnyObject]?) -> WCSessionFileTransfer I can't find it documented anywhere. Thanks! BootMaker

Watch OS 2 - How store data on Watch for fully native app?

可紊 提交于 2019-12-08 18:05:00
问题 I need to store about 5 variables on the WatchKit Extension - Watch side Only. The app is going to be completely native, without passing any info to the iPhone. I need the data to persist if the watch is re-booted. The app currently resets to the default variable states upon reboot. I'm not sure what to use. I found information online about using the watch keychain for storing key-value data pairs (username/password), but I don't think that's what I should use here. Appreciate some help. 回答1:

How to hide or remove the time from the Apple Watch status bar?

坚强是说给别人听的谎言 提交于 2019-12-08 17:28:31
问题 How do I hide or remove the small clock from Apple Watch statusbar screen on my app? I searched the web for this but found nothing! I just discovered that Apple will reject your app if you remove that clock, but my app is a watch face itself and doesn't need to display that time. 回答1: As you pointed out, trying to hide or remove the time from the status bar will get your app rejected. There's no way to accomplish what you want to do yet, since Apple doesn't permit developers to create custom

WatchKit Notification Title Color

陌路散爱 提交于 2019-12-08 13:24:29
Is it possible to set the color of the application title (the text that is on a sash). It seems that it is always fixed to white. In my application I have a light background image with a color that is close to white in the right corner. This makes the name of the app barely readable. I could not find a way to customize the app title color neither in xCode nor programmatically. It might well be that it is fixed to white. But if anybody changed it, please share the solution! You can click on the arrow of Static Notification in Storyboard. And in the Attributes Inspector, you can change the Title

Download images in a Table in watch kit async

落花浮王杯 提交于 2019-12-08 13:14:59
问题 I am developing a WatchKit app, I need to get some images(sometimes 50 thumbnails) to fulfill a Table . I am downloading the images in the iOS app and passing them to the WatchKit Extension , but I am having problems. First, I have three buttons, if I press one of them I see a Table with some elements, all of them with image and label . The main problem is when I am downloading those images and I press one item to see its detail, the main thread is blocked and the app doesn't make push to the