Error after renaming an Xcode 6 project: "the linker command failed with exit code 1 (use -v to make the call)"

So, after I create the Xcode 6 project, even if I haven’t written any code in it, if I try to rename it, double-click on the bold in the upper left corner of the navigator and then confirm that I want the names verified the elements have been changed, I get the following error on startup: "clang: error: the linker command failed with exit code 1 (use -v to call the call)"

I even tried using the find tool to see all the things named by the previous name, including info.plist (which in my opinion is the problem) and changing them to the new name. Renaming info.plist manually, I get an error message that does not exist.

What am I doing wrong?

+58
ios xcode swift xcode6
04 Oct '14 at 21:50
source share
8 answers

I saw the same error after changing the name, and I was able to fix it by clearing the "Test Host" values ​​in the build settings of my "Tests" target:

enter image description here

Alternatively . If you need your tests to run after changing the name of your project, you should be able to update the value of MyProject.app/MyProject in both fields to display the new name of your project (i.e. MyNewProject.app/MyNewProject )

+146
Nov 12 '14 at 18:18
source share

If the above method does not work, and if now you do not need to test anything in your project, just delete the goal of testing the project .

Later, if you need to create multiple tests, you can still add test targets .

+6
Feb 07 '15 at 20:24
source share

Go to the build settings of my Tests target, then change the paths from the old project name to your new project name

 Test Host - Debug Build/Debug-iphoneos/OldProjectName.app/OldProjectName - Release Build/Release-iphoneos/OldProjectName.app/OldProjectName Test Host - Debug Build/Debug-iphoneos/NewProjectName.app/NewProjectName - Release Build/Release-iphoneos/NewProjectName.app/NewProjectName 

Just cleaning them will break your tests, so you will need to replace them with the new project name.

+5
Feb 02 '15 at 2:55
source share

This can also be included, after copying and renaming the folder with the xcode project. I think this is a bug in xcode. The best file is a bug with bugreporter ( https://bugreport.apple.com/ ). Removing the test target from my project also fixed it for me.

+2
Mar 05 '15 at 10:31
source share

Here is what I did to fix a similar problem, since I changed the name and folders of the project in the project.

  • Select project file: projectName.xcodeproj
  • Right-click the project file and click Show Package Contents to open the project.pbxproj file.
  • As soon as the ope project.pbxproj file replaces everything from the old project name (no matter what you changed) with the new name.
  • You can change the name of the subfolder if you also changed the name of the folder.

I hope for this help.

0
mar 07 '15 at 18:11
source share

There are different places where you should check the renaming. You must check the “old” name of the project in the target sample and in the target project. Find the old name string and rename them manually to the new name.

0
Apr 28 '15 at 13:57
source share

If you are not using a test target, you can delete this target.

-2
Jun 30 '15 at 12:24
source share

There are many places you should check for reassignment of names. This approach does not seem practical.

If you really need to do this, I recommend creating a new project and simply copy the necessary files to the new project.

-3
04 Oct '14 at 10:55
source share



All Articles