開發的時候執行apple watch程式出錯:
ailure Reason: The request was denied by service delegate (IOSSHLMainWorkspace) for reason: Busy ("Cannot launch apps while in nightstand mode").
這是因為:
將Apple Watch放在充電器上並直立放置時,它將自動進入Nightstand Mode(牀頭櫃模式),該模式將螢幕從通常的錶盤切換為佔用整個螢幕的大數字時鐘。
所以要將apple從充電器上拿下來再試一下。
Thread 1: Fatal error: No ObservableObject of type HealthKitManager found. A View.environmentObject(_:) for HealthKitManager may be missing as an ancestor of this view.