Hi,
I encountered a very strange issue. I believe it happened following MacOS 14.4 upgrade, I tested and could reproduce systematically the following behaviour both in XCode 15.2 & 15.3 on my macbook air m2.
If you build an iOS app and compile it to run on MacOS (m1) using "My Mac (Designed for iPad) target, only the 2 first builds will be ok.
From 3rd one, any code change will build correctly but not be taken into account.
I found that cleaning the .XCInstall in the build folder (where the MacOS package is deployed), it works ok (adding rm -fr ${BUILT_PRODUCTS_DIR}/.XCInstall as pre-build script).
Step to reproduce: create a iOS new app (just initiate a new project, I choosed an objective-C one with storyboard) and build it with target "My Mac (Designed for iPad)".
Lets say the app is named "test.app".
1st build, it will build as "test.app" in build/.XCInstall folder: ok
2nd build, it will build as "test.app 2" in build/.XCInstall folder: ok
3rd build, it will build as "test.app 3" in build/.XCInstall folder: KO, any code change won't be taken into account (as if I was running "test.app 2"). It will require to clean the project to make it work again (and so next build will generate "test.app" and not "test.app 4").