Post

Replies

Boosts

Views

Activity

Reply to After update to XCode 15.3 can't run app on My Mac (Designed for iPad) - error: attach by pid 'xxxxx' failed -- attach failed
I am experiencing the same problem after having installed a production binary of the app. When trying to launch the app from Xcode for debugging with the designed for iPad scheme, there seems to be some confusion between the two. If the app is installed, then that's the one that is launched and attached to the debugger (and thus unusable for debugging as it is not the correct build), if the app is uninstalled manually, then Xcode gives the attach failed error. Turning off Debug Executable in the scheme allows attaching, but it seems the version of the app running is not the one built last by Xcode, but the production version installed (even after I uninstalled it!). Where is this cached and how can I clear it completely?
May ’24