今天开始介入苹果越狱sdk,说明文档中需要加入类库libxml2.dylib。
我用的xcode版本为7.1且ios sdk版本为9.1,发现在添加链接库时找不到某些类库。例如:libxml3.dylib 已经变成了libxml2.tbd。
google后找到如下方法:
had the same problem. I found some kind of way around.
- Go to Build Phases >Link Binary with Librairies > + > Add other
- Once in the file selection window do "CMD"+Shift+G (Go to folder) and type /usr/lib/
- From /user/lib you can add : libz.dylib and more...
- Compile and have fun
意思是说libxml2.dylib还在,只是需要手动添加,地址在/usr/lib目录下。
顺便说一下, tbd文件可以减少app大小所以建议使用,但接sdk么,还得看人家用的是什么。
原文地址: https://forums.developer.apple.com/message/8609#8609