可能报此错误的原因很多,我这里粗心的在某个控制器下引入了某个模型的.m文件 编译时编译失败,报错:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
例:
#import "CardModel.m"
修改为:
#import "CardModel.h"
ld: library not found for -lWeChatSDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决: 我这个是使用svn-Cornerstone上传,使用的默认忽略文件,而默认的忽略文件将.a文件忽略导致未能上传,另一台设备下载下来的代码实际不完整编译失败。
Cornerstone -> Preferences -> Subversion -> General -> 不要勾选Use default global ignores 并将.a去掉即可
网友评论