This app cannot be installed to apple watch

I recently added a new target for Apple Watch, which works fine on the simulator. However, I wasn't able to run it on real Apple watches. First, I don't see it in the list of devices, even after I click "trust" and connect to my Mac over charging cable. Second, I've always used automatic code signing, and everything seems OK here. Third, I also tried distributing it over TestFlight, but that build doesn't appear in the TF. I restarted my phone and relaunched the TF app.

So, when I install the app to my iPhone over the cable, the watch app doesn't appear on Apple watches. Then, If I go to watch app and install my app manual (I see it at the bottom with the "install" button), it fails with the error "This app cannot be installed because its integrity could not be verified.". Also, there's an icon on the Apple watch, but it shows the same error when I click it.

I unpaired and paired it again, but it didn't help. Also, I tried another pair of phones, and the same thing happened. I use an AppStore account (not enterprise), and the main app works fine.

Is there a way how to fix it?

The first problem—that the watch did not show up as a run destination—is what led to the others. If Xcode doesn’t know about the watch, it can’t get added to your account or get a provisioning profile, and thus your watch bundle will not be code signed. Can you please file Feedback with a screenshot of your Devices and Simulators window and the result of devicectl diagnose, and then post the FB number here? Thanks!

This app cannot be installed to apple watch
 
 
Q