Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6.3 is crashing on Project Rename

I just updated my Xcode 6.3. I am getting an issue while project renaming. Is there any solution?

And in some case it is showing mymac instead of simulators or devices in schema - device section on top left side.

like image 830
PJR Avatar asked Apr 17 '15 07:04

PJR


4 Answers

This issue is resolved in XCode 6.4 , please update your XCode. If you are still using 6.3 then follow below solution. But I prefere to update Xcode to 6.4.

It is little different ,we have to follow some new procedure.

1) Change your xcodeproj file name first without opening it.

2) Change Target name from Project Editor by double clicking on target name.

enter image description here

3) If your project name is not changed yet , you can do it by right side of your xCode as shown in below figure.

enter image description here

4) You can change plist file name manually.

5) Now for solving scheme issue , you have to remove current scheme and have to add newer scheme with proper name.

enter image description here

enter image description here

Remove older schemes shown as above(by selecting it and removing by clicking on "-" button) and add newer one(By clicking on "+" button from manage scheme and adding proper name).

like image 159
PJR Avatar answered Nov 19 '22 04:11

PJR


After crashing, the extension "xcodeproj" disappears. So what you need is to add the extension. After opening project, all targets gone. You need to remove current scheme (Manage Schemes>Delete"), then add a new scheme with proper name. In my case, it works.

like image 43
lenhhoxung Avatar answered Nov 19 '22 05:11

lenhhoxung


Manually rename in the finder App.xcodeproj and App-info.plist to YourNewAppName.xcodeproj and YouNewAppName-info.plist. Control click on YourNewAppName.xcodeproj and chose Show Package Contents, manually rename App.xcscheme to YouNewAppName.xcscheme

Open project.pbxproj, YouNewAppName.xcscheme and xcschememanagement.plist files in your favorite text editor other than Xcode. Find and replace one at a time all instances of App to YourNewAppName then Save.

Control click on project.xcworkspace and chose Show Package Contents and open UserInterfaceState.xcusersate in text editor. Find and replace one at a time all instances of App to YourNewAppName then Save.

Open YourNewAppName.xcodeproj in Xcode and change under the Project Document settings: Project Format Xcode 6.3-compatible

...or for an easier time go back to Xcode 6.2.

like image 5
Wes Hovanec Avatar answered Nov 19 '22 05:11

Wes Hovanec


this might be a late reply, but definitely useful for some readers later on. Note: Renaming manually here and there is simply a risk and time-consuming. There a more effective way of doing it via Command-line with just 3 statements. Read on.

Two Solutions exist:

1- Upgrade to Xcode 6.3.2 GM seed or later

2- Replace by command-line - it’s fast & furious..urm effective!! Mention not

/// Install Ack. For info on Ack, see: http://beyondgrep.com/why-ack/

$ brew install rename ack

/// Two Commands to execute to do renaming - one for File names & 2nd for 'leterals' inside files

$ find . -name 'OldProjectName*' -print0 | xargs -0 rename -S 'OldProjectName' 'NewProjectName'

$ ack --literal --files-with-matches 'OldProjectName' | xargs sed -i '' 's/OldProjectName/NewProjectName/g'

/// Check to see if all renaming was a success. The following command indicates a success IF & ONLY IF no result is output

$ ack --literal 'OldProjectName'
like image 3
Khayrattee Wasseem Avatar answered Nov 19 '22 05:11

Khayrattee Wasseem