如何解决链接器命令失败,退出代码1(使用-v查看调用) [英] How to solve linker command failed with exit code 1 (use -v to see invocation)
问题描述
我在为我的应用执行归档时收到此错误。
链接器命令失败,退出代码1(使用-v查看调用)
可以帮助我解决这个问题。
i am getting this error when i am performing archive for my app. linker command failed with exit code 1 (use -v to see invocation) can any one help me to solve this.
感谢
推荐答案
。
1)如果在不同的类中有两个相同的常量
问题发生。
1) if you had two same constants
in different classes then also this issue happens.
2),如果您不小心导入了 .m文件
2) if you have accidently imported a .m file
instead of .h file
in an implementation file.
3)此错误也可能发生在您已经导入了
两个不同版本的同一个库
,在这种情况下只是删除旧版本,只保留一个版本。
3) This error can also be occurred if you have imported two different versions
of same library
,in this case just remove the older version and keep only one version.
4)在其他链接器标记
>Project,而不是在Targets
。因此,将它移动到Targets
,它不应该在Project
。
4) Adding the "other linker flags"
in "Project"
and not in "Targets"
. So, you move it to "Targets"
, it shouldn't be in "Project"
.
5)在DEBUG中的 project-> target-> build settings-> search enable bitcode-> set NO
请检查此..如果可以,那么一定要像下面这样。
check out this .. if it's OK then once do like following.
>清除 ...然后运行项目
Menu > Product > Clean ... then Run the project
希望它帮助你..)
这篇关于如何解决链接器命令失败,退出代码1(使用-v查看调用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!