Search code examples
iosswiftwatchoswatchconnectivity

Error in WKWatchOnly key for WatchConnectivity


message: The WKWatchOnly key must not be present in your WatchKit extension's Info.plist because your WatchKit app is embedded in an iOS companion app. How can i change this configuration?


Solution

    • Go to your target list
    • Select your WatchKit Extension
    • Select tab [Build Settings]
    • Search for keyword "WKWatchOnly"
    • Change the value of App is Available Only on Apple Watch to No

    Here is the screenshot for better understanding: Update WatchKit Extension setting for WKWatchOnly

    Hope that you solve your problem.