Apple Watch: On device watch app reverting to old build

I'm making my first watch app and have run into a bit of a weird problem.

While writing the app, I'm using it on my Apple Watch Series 6 on a regular basis. I'm installing builds on the watch by simply clicking Run in Xcode with my watch as the target device.

This works well for the most part, but lately I've run into a strange issue: While new builds install seemingly correctly when I click Run in Xcode, they do not persist for very long. Maybe for the next few hours. If I open the app on the Watch the next day, the app has reverted to a particular build I made several weeks ago. To get the newest build back on the watch I have to build and run from Xcode again.

This is the second time over the past few months where the watch has gotten stuck on a build like this. Last time I fiddled with the build and version numbers until it got unstuck. This time I haven't found a way of resolving it.

Things I have tried:
  • Delete the app from the watch and re-install from Xcode

  • The same as above, but reboot the device after deleting the app

  • **** away Xcode's derived data

I'm running the latest stable versions of Xcode and watchOS.

Has anyone else run into this? The app is written in SwiftUI 2 if that matters at all.

I'm a year late but anyway... Yes, I've run into exactly the same problem. Hoping you might've found the culprit by now.

My Watch app looks correct after a fresh install from Xcode, but the next day it goes back to the previous version! I've tried the same things you did. I'm on Xcode 13 and Swift 5.

Apple Watch: On device watch app reverting to old build
 
 
Q