博客> 编译出现错误:linker command failed with exit code 1 (use -v to see invocation)
编译出现错误:linker command failed with exit code 1 (use -v to see invocation)
2017-11-25 08:46 评论:0 阅读:169 IT喃
ios app 不显示 上架

今天编译项目的时候,报错,linker command failed with exit code 1 (use -v to see invocation)

总结一下这个可能存在的原因:

1、工程中文件名重复、重复引入头文件(用 cocoapods 的时候有可能造成重复);

2、.a 文件重复或者缺失(用 SVN 时候有可能导致缺失);

3、Other Linker Flags 下的属性改为 -all_load (或者下边的属性都删除);(在TARGETS --> Build Setting --> Other Linker Flags)

4、Build Setting --> Enable Bitcode 设置为 No;

5、Build Setting --> Architectures --> Build Active Architecture Only 把 Yes 改为 No;

目前是只知道这五种方式导致的,如果有知道其他可能的大神,请留言,O(∩_∩)O谢谢

再刷新一个方法上来,这个的确是之前米有想到的,亲测有可能是这个Tests 的问题

Showing Recent Issues
Ld /Users/***/Library/Developer/Xcode/DerivedData/finance-fnehbdkzkucfkefncoxbzfzndvcp/Build/Intermediates/finance.build/Release-iphonesimulator/financeTests.build/Objects-normal/x86_64/financeTests normal x86_64
    cd "/Users/***/Desktop/ios/BBD_APP_1.8.5 (20170629)"
    export IPHONEOS_DEPLOYMENT_TARGET=7.0

••• •••

ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/XCTest.framework/XCTest) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

 Enter your image description here:

 Enter your image description here:

 Enter your image description here:

非常抱歉,不知道为啥这个都不显示图片,在这里附上我的简书同篇文章和CSDN同篇,辛苦辛苦O(∩_∩)O~

http://www.jianshu.com/p/74c3bd5f4ced

http://blog.csdn.net/jwheat/article/details/73887658

收藏
1
sina weixin mail 回到顶部