WatchConnectivity framework - Companion app is not installed

I created a pair of fairly simple apps (iOS and watchOS) that send messages to each other. It uses the WatchConnectiivity framework. When I run the two apps in the Simulator, I can send messages from the phone to the watch, but I cannot send messages from the watch to the phone. When I attempt that I get the message "Companion app is not installed".

I've seen suggestions that I need to uncheck the "Supports Running Without iOS App Installation" checkbox, but when I do that, the iOS app no longer runs in the Simulator.

My code is here: https://github.com/mvolkmann/watch-with-ios. I'd love to get some hints about how to work past this.

I get the same result regardless of the order in which I start the two apps.

I created a new version of the project that is much smaller and exhibits the same issue. See https://github.com/mvolkmann/watch-with-ios-2.

This new project works sometimes. The results are inconsistent. I wonder if there is a timing issue with establishing a connection and sending a message.

This seems to work flawlessly on real devices, so perhaps it is only inconsistent when running in the simulator.

WatchConnectivity framework - Companion app is not installed
 
 
Q