美文网首页
.a静态库报错类型解决方法

.a静态库报错类型解决方法

作者: Jesscia_Liu | 来源:发表于2021-05-08 18:07 被阅读0次

一、Error信息

libCGDrawView.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

二、可以尝试的解决方案

1.方案1:

#if DEBUG
区分加载.a静态库是正式库还是测试库的
#endif
  • 此处若Edit Scheme中Build Configuration中选择了Release非Debug时,
    用模拟器运行程序会跑错。所以用模拟器运行程序的时候务必选择Debug模式··

2.待完善

相关文章

网友评论

      本文标题:.a静态库报错类型解决方法

      本文链接:https://www.haomeiwen.com/subject/eitpdltx.html