Error after renaming Xcode 6 project: “linker command failed with exit code 1 (use -v to see invocation)”

后端 未结 8 1016
情深已故
情深已故 2020-12-12 11:54

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 corn

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 12:39

    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 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)

提交回复
热议问题