我在我的项目中使用了 Flyer
和 Crittercism
。两者都有 libAppsFlyerLib.a
和 libCrittercism_v4_3_4.a
。
现在每当我打开我的项目并运行它时,我总是第一次遇到这个错误。
ld: warning: directory not found for option
'-LApp/Model/Utility/CrittercismSDK' ld: warning: directory not found
for option '-LApp/Model/CrittercismSDK' ld: warning: directory not
found for option '-LApp' ld: warning: directory not found for option
'-LApp/Model/Flyer' ld: warning: directory not found for option
'-FApp/Model/Fabric' ld: library not found for -lAppsFlyerLib clang:
error: linker command failed with exit code 1 (use -v to see invocation)
要解决此问题,我必须取消选中并再次手动检查 libAppsFlyerLib.a
和 libCrittercism_v4_3_4.a
的项目目标成员资格。之后该项目运行良好。
为什么第一次我必须手动为 .a
文件设置成员资格?我在这里遗漏了什么吗?
最佳答案
由于 @trojanfoe
的建议,我找到了解决此问题的正确方向,并发现它正在发生,因为它在 build 中没有 library search path
->设置 。所以我在 library search path
文件中设置了 .a
的路径并且它有效。
关于ios - 始终必须为 .a 文件设置目标成员资格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35269322/