Xcode 15 - Apple Watch Companion Embed Not Working

The iPhone Target Build Phase for my Apple Watch companion app specifies the source of the Product to embed as: build/Debug-watchos, however, the Watch build is located at build/Debug-watchsimulator.

I am receiving an error from Xcode when trying to install the Apple Watch app in the watch simulator, as follows: An application bundle was not found at the provided path. Provide a valid path to the desired application bundle.

Failed to install the requested application Domain: NSPOSIXErrorDomain Code: 2 Failure Reason: An application bundle was not found at the provided path. Recovery Suggestion: Provide a valid path to the desired application bundle.

I have tried deleting the Watch target and re-adding the target but the misconfiguration remains. I have also tried adding my own Copy Build Phase but when selecting the Product for the Apple Watch companion app the same incorrect folder is used. Any ideas?

This is a known issue according to Xcode release notes: https://developer.apple.com/documentation/xcode-release-notes/xcode-15_1-release-notes

Running a WatchApp that requires the companion iOS app to be installed will result in an error if the run destination is set to a Watch via iPhone Simulator pair. (119640671) Workaround: Select a singular Watch Simulator run destination and then Run.

I have the same problem. Can't run Apple Watch simulator at all.

same issue

I had the same problem today. I think the error is caused by the addition of spaces when naming the target extension. "MyAppWatch Watch App"

same for me. I've tried everything but same error appears. How can I run the watch app if this error appears every time, it's not normal...

Same here

No a solution but a workaround... Open the bundleURL parent path as shown in the error message and make a copy of your Debug-watchsimulator folder, renaming it to Debug-watchos, then build again. I filed this as FB13440925

Additionally, this is an Xcode 15.1 regression, it works fine on Xcode 15.0.1.

A bit more experimenting, the issue is with watch apps with companion app, whether adding watch app to existing iOS app or creating a new project with iOS/watchOS app pair it will fail to run. Create a new standalone watchOS app and it works.

It seems like you can only deploy standalone watch apps (FB13480884).

I have the same issue, and reported it to Apple. The issue for me seems to be that the missing file is looked for in directory <some_long_path_name>/Debug-watchos, while it is located in directory <some_long_path_name>/Debug-watchsimulator

As a work-around, in the Terminal, cd to the <some_long_path_name> directory, and create a symbolic link as follows:

ln -s Debug-watchsimulator Debug-watchos

This works until the next time you do a "Clean build folder".

This is a known issue according to Xcode release notes: https://developer.apple.com/documentation/xcode-release-notes/xcode-15_1-release-notes

Running a WatchApp that requires the companion iOS app to be installed will result in an error if the run destination is set to a Watch via iPhone Simulator pair. (119640671) Workaround: Select a singular Watch Simulator run destination and then Run.

I have the same issue with Xcode 15.2. I am using the symlink workaround for now.

symlink not work when building and force_load my lib

It’s still not working for me on 15.3 on a legacy app/watch app that has been working and compiling fun until now Tried the sym link and still no app installation even though the code seems to be built.

it will it install on either the device or simulator.

Xcode 15 - Apple Watch Companion Embed Not Working
 
 
Q