archive linker command failed with exit code 1 (use -v to see invocation)

自己遇到的bug


图片.png

分几种情况:
1.如果你模拟器运行正常,真机测试正常,archive的时候出错,不用怀疑,把bitcode 设为no


archive linker command failed with exit code 1 (use -v to see invocation)_第1张图片
图片.png

2.模拟器都过不去
1)未导入第三方库
那就是你自己文件的问题
1、检查引用文件是否出错,把
xxx.h文件弄成了xxx.m文件,检查一下你的所有引用;
2、在工作左边导航栏Target–>Build Phases–>compile Sources中,库的所有.m文件存在重复添加。

2)导入第三方库之后出错
1、如果用了pod
设置 Project -> Pods 下所有第三方库的 Build Active Architecture Only 为 NO
2、没用pod
按照1)方法检测去做

3.路径不对
我们可以去 Build Setting 中搜这玩意儿,然后就看看该路径下有没有你的sdk


archive linker command failed with exit code 1 (use -v to see invocation)_第2张图片
图片.png

archive linker command failed with exit code 1 (use -v to see invocation)_第3张图片
图片.png

你可能感兴趣的:(archive linker command failed with exit code 1 (use -v to see invocation))