总是必须为.a文件设置目标成员身份
我在我的项目中使用了Flyer
和Crittercism
。分别有libAppsFlyerLib.a
和libCrittercism_v4_3_4.a
。总是必须为.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
manually.After该项目运行良好。
为什么我要始终设置会员资格.a
文件手动第一次?我在这里错过了什么吗?
因为@trojanfoe
的建议,我得到正确的方向来解决这个问题,并发现它正在发生,因为它没有library search path
在建设 - >设置。所以我设置.a
在library search path
文件的路径,它的工作原理。
这些与'-L'和'-F'标志有关的警告是否正确? – trojanfoe
@trojanfoe @trojanfoe坦率地说,我对-L和-F – KDeogharkar
没有什么想法,它们被用来告诉链接器在哪里找到库和框架,并且可能是这种情况下的罪魁祸首。您需要检查您的项目设置, – trojanfoe