ios - 始终必须为 .a 文件设置目标成员资格

标签 ios xcode xcode6 xcode7 .a

我在我的项目中使用了 FlyerCrittercism。两者都有 libAppsFlyerLib.alibCrittercism_v4_3_4.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 的项目目标成员资格。之后该项目运行良好。

enter image description here

为什么第一次我必须手动为 .a 文件设置成员资格?我在这里遗漏了什么吗?

最佳答案

由于 @trojanfoe 的建议,我找到了解决此问题的正确方向,并发现它正在发生,因为它在 build 中没有 library search path ->设置 。所以我在 library search path 文件中设置了 .a 的路径并且它有效。

关于ios - 始终必须为 .a 文件设置目标成员资格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35269322/

相关文章:

ios - SwiftUI:如何将核心数据对象传递给 View ?

objective-c - 如何以编程方式在 iOS 中按下 "dictate"键盘键(Objective-C)

ios - 在 UIViewController Extension 中引用全局字符串变量

ios - Google Maps AutocompleteResultsViewController 在 iOS 10 中崩溃

iphone - Xcode iOS SDK 兼容性

uiimage - iOS 8 UIImage 元数据

ios - Xcode 6 View 调试不可用

XCode 6 GM 占用磁盘空间和内存

ios - 调用 heightForRowAtIndexPath 时 UITableViewCell 的 contentView 宽度不同 :

ios - 使用 Swinject 在对象之间共享对象实例