总是必须为.a文件设置目标成员身份

问题描述:

我在我的项目中使用了FlyerCrittercism。分别有libAppsFlyerLib.alibCrittercism_v4_3_4.a总是必须为.a文件设置目标成员身份

enter image description here

现在,每当我打开我的项目并运行它,我总是得到这个错误第一次。

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.alibCrittercism_v4_3_4.a manually.After该项目运行良好。

enter image description here

为什么我要始终设置会员资格.a文件手动第一次?我在这里错过了什么吗?

+1

这些与'-L'和'-F'标志有关的警告是否正确? – *foe

+0

@*foe @*foe坦率地说,我对-L和-F – KDeogharkar

+1

没有什么想法,它们被用来告诉链接器在哪里找到库和框架,并且可能是这种情况下的罪魁祸首。您需要检查您的项目设置, – *foe

因为@*foe的建议,我得到正确的方向来解决这个问题,并发现它正在发生,因为它没有library search path建设 - >设置。所以我设置.alibrary search path文件的路径,它的工作原理。