Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project Crashes After Rename

Tags:

xcode

rename

ios

If I change the name of my iOS project in XCode either in in the navigator view:

What is the equivalent of Project->Rename in Xcode 4

Or in the Inspector, like this:

http://woolybeastsoftware.com/woolyblog/2012/01/22/xcode-4-renaming-projects/

...XCode quits unexpectedly? Anybody run into this problem?

Why does this happen and how can you avoid it?

like image 702
Josh Elias Avatar asked Jan 17 '13 18:01

Josh Elias


1 Answers

If your Xcode project is corrupted, you can do the following,

  • In finder, right click on your .xcodeproject file and click on show package contents.
  • Then right click on your project.pbxproj and open it in some text editor.
  • Then search for the previous project name which you used and manually rename it to the new name.
  • Save it after changing and then reopen the project.

The reason is because your project.pbxproj file which stores all details related to the project got corrupted which causes the Xcode to not able to parse it and hence it crashes. Ideally this shouldn't happen while renaming, but in your case somehow it got corrupted. –

like image 138
iDev Avatar answered Oct 01 '22 18:10

iDev