Xcode编译常见错误解决:linker command failed with exit code 1 (use -v to see invocation)

时间:2022-06-08 10:45:40
Showing All Issues clang: error: linker command failed with exit code 1 (use -v to see invocation)

出现以上错误,现总结如下解决方法:
1、检查引用文件是否出错,把
xxx.h文件弄成了xxx.m文件,检查一下你的所有引用;

2、在工作左边导航栏Target–>Build Phases–>compile Sources中,第三库库的所有.m文件时候重复添加。

Xcode编译常见错误解决:linker command failed with exit code 1 (use -v to see invocation)

3、设置 Project -> Pods 下所有第三方库的 Build Active Architecture OnlyNO
Xcode编译常见错误解决:linker command failed with exit code 1 (use -v to see invocation)