浅析.tbd与.dylib
来源:互联网 发布:yy网络直播间 编辑:程序博客网 时间:2024/06/06 03:06
http://blog.csdn.net/zbh491163747/article/details/51441602
Xcode7 升级后 在引入动态库的时候 发现.tbd 取代了 .dylib出现在我们眼前
.dylib 去哪了
事实上.dylib 还在原来的位置,而且我们也可以通过解析.tbd 来找到他们,要使用原来的.dylib文件可以这样做:
- 选择"Add Other"
- 按下"CMD"+Shift+G"
- 输入"/usr/lib"
.tbd 是什么
经过苦苦的搜索之后,还是没有(!!!)任何有价值的文献,只在苹果开发者论坛中有一段来自苹果官方的回答:
For those who are curious, the .tbd files are new "text-based stub libraries", that provide a much more compact version of the stub libraries for use in the SDK, and help to significantly reduce its download size.
简单说.tbd 又是和苹果压缩 iOS 系统和应用体积的政策的产物。
.tbd 出错了
如果你在使用.tbd 时出现类似这样的的错误:
warning: skipping file ‘/Users/me/xcode7/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libz.tbd’ (unexpected file type ‘text’ in Frameworks & Libraries build phase)”
请参考下面的解决办法:
To work around this issue for now, please:
- Delete all references to .tbd files from either your linked libraries phase, or from the copied bundle resources phase (where they sometimes will be added).
- Add the library you want to link manually to the "Other Linker Flags" build settings, by adding the argument:
-l<library_name>
for each library you want to link (for example, add "-lsqlite3" (without quotes)).
也就是说:
- 删除所有 .tbd 引用,不论Link Binary With Libraries 中添加的 还是copy bundle resources
- 在 Build Settings => Other Linker Flags 中手动将每一个你要导入的库以-l"<library_name>"的形式添加,例如你要导入sqlite3 则添加-l"sqlite3"。
- 浅析.tbd与.dylib
- 浅析.tbd与.dylib
- .dylib与.tbd
- .tbd和.dylib
- tbd和dylib
- Xcode7 使用 *.tbd 而不是 *.dylib
- xcode7 dylib换为tbd
- Xcode7中只有".tbd",没有".dylib"
- Why Xcode 7 shows *.tbd instead of *.dylib?
- libz.dylib的研究 libz.1.2.5.tbd
- 更新Xcode7 后 .dylib变成了.tbd的问题解决
- Xcode7版本之后 .dylib变成了.tbd解决方法
- 关于Xcode7后.dylib库不见了而变更为.tbd
- TBD
- TBD
- 备忘: xcode7下dylib文件被替换为tbd格式后的编译错误解决方法
- iOS9 在 iOS9 中现在找不到 XXX.dylib 了,比如libz.tbd
- IOS开发报错-引入libxml2.dylib或libxml2.tbd报错
- Python核心编程(第二版)第三章练习题
- POJ 2752 Seek the Name, Seek the Fame (kmp)
- JFreeChart与AJAX+JSON+ECharts两种处理方式生成热词统计可视化图表
- Android中的Apk的加固(加壳)原理解析和实现
- Js-创建数组、访问数组
- 浅析.tbd与.dylib
- jQuery Validate插件
- 前端笔试准备:数据库&&操作系统&&算法
- 大型网站技术架构(五)--网站高可用架构
- echarts 仪表图-实例
- Linux sort命令使用示例
- 【Hibernate】的cascade属性
- java 搭建spring核心框架
- python 二叉树的相关实现