简体   繁体   English

xcode 8.x中缺少FMDB库

[英]FMDB library missing in xcode 8.x

ld: library not found for -lPods-Project_name-FMDB clang: error: linker command failed with exit code 1 (use -v to see invocation) ld:找不到-lPods-Project_name-FMDB clang的库:错误:链接器命令失败,退出代码为1(使用-v查看调用)

The above error in xcode8.1 but code successfully run in xcode 7.x versions. xcode8.1中的上述错误,但代码在xcode 7.x版本中成功运行。

I got the solution of my questions. 我得到了我的问题的解决方案。

remove the -lPods-(someCocoaPod) lines in the 'Other Linker Flags' list BUT only if $(inherited) is at the top. 除非$(继承)位于顶部,否则删除'Other Linker Flags'列表中的-lPods-(someCocoaPod)行。 At first I was unsure, but the reassuring sign was that I still saw references to my cocoapods when I left the edit mode(inherited). 起初我不确定,但令人安心的迹象是,当我离开编辑模式(继承)时,我仍然看到了对我的cocoapods的引用。 I tested in debug and release, both of which were giving me errors, and the problem was immediately resolved 我在调试和发布中测试过,这两个都给了我错误,问题立即解决了

我在Xcode 8中遇到了同样的错误。这是通过在Pods下打开FMDB-watchOS Target并将ENABLE_BITCODE设置为YES来解决的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM