I am attempting to setup XCUI Automation for WatchOS application but it fails to launch the watch application.
Below are a couple of things i have tried out.
Created a UITesting bundle/target & attempted to add Target application as WatchOS target [but it doesn't allow selecting], so had to leave it as None.
2. Tried to pass the watchOS bundleIdentifier using
let app = XCUIApplication.init(bundleIdentifier: "com.mybundleid.mywatchapplication")
app.launch()
But i get the below error
Failed to launch com.mybundleid.mywatchapplication: The operation couldn’t be completed. Application info provider (FBSApplicationLibrary) returned nil for "com.mybundleid.mywatchapplication"