重命名Xcode 6项目后出现错误:“链接器命令失败,退出代码为1(使用-v查看调用)". [英] Error after renaming Xcode 6 project: "linker command failed with exit code 1 (use -v to see invocation)"

查看:81
本文介绍了重命名Xcode 6项目后出现错误:“链接器命令失败,退出代码为1(使用-v查看调用)".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,在创建Xcode 6项目后,即使我没有在其中编写任何代码,如果我尝试通过双击导航器左上角的加粗程序标题来重命名该项目,然后确认我想要更改已检查项目的名称,尝试运行该项目时会出现以下错误:"c:错误:链接器命令失败,退出代码为1(使用-v查看调用)"

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

我什至尝试使用查找工具查看所有以前名称的东西,包括info.plist(我认为这是问题所在)并将其更改为新名称.通过手动重命名info.plist,我收到一条错误消息,指出该消息不存在.

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.

我做错了什么?

推荐答案

更改名称后,我看到了相同的错误,并且可以通过清除测试"的生成设置"中的测试主机"值来解决此错误. "目标:

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:

或者,如果您需要在更改项目名称后才能运行测试,则应该能够在两个字段中更新MyProject.app/MyProject值以反映新的名称.您的项目(即MyNewProject.app/MyNewProject)

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)

这篇关于重命名Xcode 6项目后出现错误:“链接器命令失败,退出代码为1(使用-v查看调用)".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆