Missing files libresolv.9.dylib and libxml2.dylib

ぃ、小莉子 提交于 2019-12-04 23:24:23

问题


I have an old Xcode project for iOS where I used libxml2.dylib and libresolv.9.dylib. After installing XCode7.

I can't find the files and I don't know where to search. Can someone help me?


回答1:


SleepyViking's answer in this thread provides a shortcut to find missing .dylib files.

  1. Go to Build Phases > Link Binary with Librairies > + > Add other
  2. Once in the file selection window do "CMD"+Shift+G (Go to folder) and type /usr/lib/
  3. From /usr/lib you can add : libz.dylib and more...
  4. Compile and have fun



回答2:


With the new Xcode and new iOS the links with the libresolv.9.dylib and libxml2.dylib must be updated removing the reference from Target->Building Phases and adding the new files: the files are now in a different folder:

/Users/yyyyyy/Library/Developer/Xcode/iOS DeviceSupport/9.0 (xxxxxx)/Symbols/usr/lib

where yyyyyy is the user name and xxxxxx the iOS bulild.



来源:https://stackoverflow.com/questions/32550557/missing-files-libresolv-9-dylib-and-libxml2-dylib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!