XCode解决 can't locate file for .a文件异常

标签 IT工具网 ios

XCode中,如果直接将 xxx.a 文件拖进到项目中,有时会出现异常。

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lxxx
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lxxx is not an object file (not allowed in a library)

解决方法:在Build Settings选项中,找到Library Search Paths,将 xxx.a 所在的目录加入进去。

相关文章:

什么是JavaScript严格模式?

Java源码里的设计模式

如何使用maven把项目及其依赖打包为可运行jar包

ios - 如何获取 PHAsset 的原始(EXIF?)创建日期/时间?

ios - Objective-c,添加自定义 UIView 到父 View Controller

如何学习数据结构与算法

JavaScript中的数值转换操作

ios - 后台任务执行未按预期工作

ios - 无法将 UINavigationBar 中的图像设置为中心

iphone - awakeFromInsert 从未调用过