I’ve made a trivial app to display the difficulty. Taking the defaults for File -> New->Undertaking… -> App, I changed ContentView.swift
with the next code and run it on an iPhone 15 Professional (17.5) simulator. The (to me) mysterious error messages are the identical on a bodily system with a watch counterpart app put in and in any other case working appropriately.
The console output is:
Software context knowledge is nil
Software context knowledge is nil
WCSession counterpart app not put in
import WatchConnectivity
struct ContentView: View {
let wcManager = WatchConnectivityManager.shared
var physique: some View {
VStack {
}
}
}
class WatchConnectivityManager: NSObject {
static let shared: WatchConnectivityManager = WatchConnectivityManager()
non-public override init() {
tremendous.init()
WCSession.default.delegate = self
WCSession.default.activate()
}
}
extension WatchConnectivityManager: WCSessionDelegate{
func sessionDidBecomeInactive(_ session: WCSession) {
}
func sessionDidDeactivate(_ session: WCSession) {
}
func session(_ session: WCSession, activationDidCompleteWith activationState: WCSessionActivationState, error: Error?) {
}
func session(_ session: WCSession, didReceiveMessage message: [String : Any], replyHandler: @escaping ([String : Any]) -> Void) {
}
}
Setting a breakpoint reveals “activationDidCompleteWith” is known as with error = nil.
What utility context knowledge is nil? The session has solely simply been activated. There’s been no try to ship a message at this level.

