That’s the most frustrating thing about Xcode, especially the section on auto-signing the output once it’s built, because there doesn’t seem to be a way to handle it via CMake (and not an issue with CMake, but with XCode). Any time the project is re-created, that section has to be set manually again.
Which section? There is another post that describes how to edit the CMake so some things do not need to be set in Xcode again and again…. I am not testing on device at present, but as soon as I build with cmake I can run in Xcode without changing anything in Xcode