So after I create an Xcode 6 project, even if I haven't written any code in it, if I try renaming it by double clicking the bolded program title in the upper left hand corner of the navigator and then confirming that I want the checked items' names changed, I get the following error when I try running it: "clang: error: linker command failed with exit code 1 (use -v to see invocation)"
I've even tried using the find tool to see all the things named the previous name, including the info.plist (which I think is the problem) and changing them to the new name. By renaming the info.plist manually I get an error saying that doesn't exist.
What am I doing wrong?
There are many places you have to check upon re-naming. This approach does not seem at all practical.
If you really need to do this, I recommend creating a new project and just copying the necessary files over to the new project.
Here is what I've done to fix the similar problem since I changed the project name and folders under the project.
Hope this help.
Ran into this too, after copying and renaming the folder with an xcode project. I think it's a bug in xcode. Best file a bug with bugreporter (https://bugreport.apple.com/). Removing the test target from my project fixed it for me, too.
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:
Alternatively, If you need your tests to be able to run after changing the name of your project, you should be able to update the
MyProject.app/MyProject
value in both fields to reflect the new name of your project (ie.MyNewProject.app/MyNewProject
)Go to the Build Settings of my "Tests" target then change the paths from the old project name to your new project name
Just simply clearing them would break your tests so you need to replace them with the new project name.
There are different places where you should check for the rename. You should check for the "old" project name in the test target and in the project target. Search for the old name string and rename them manually to the new name.