I’m trying to change my Bundle ID from the default one to the one I created in Apple’s Developer Center. But when I change the Bundle ID in the plist, then delete the app on my phone and try to run it from XCode, I get the following error:
Could not launch "MyApp"
No such file or directory (then it lists a path to the app's DerivedData folder)
Am I supposed to do anything special when I change the app’s Bundle ID?
Try cleaning the project. I prefer to simply delete the whole
~/Library/Developer/Xcode/DerivedDatafolder, because Xcode sometimes messes up and doesn’t clean properly.Consider writing a simple bash script for that. In
~/.bash_profile(you might have to create this file first) add this:Save and run
source ~/.bash_profile(or restart Terminal).Now you can simply type
cleaninto any terminal window and it will clean all your projects.