libz.dylib libsqlite3.dylib 不在 Xcode 7 中,解析不保存数据

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32656107/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:51:51  来源:igfitidea点击:

libz.dylib libsqlite3.dylib not within Xcode 7, Parse not saving data

objective-cxcodeswiftparse-platformxcode7

提问by Ace

I am trying to work with Parse on an App, I am new to swift. But I downloaded Xcode 7 and it seems libz.dylib libsqlite3.dylib are missing and when I compile and build it is done successfully yet Parse does not show any data save. I tried adding -lz and -lsqlite3 onto "Other Linker Flags" yet that was not able to solve the issue. Anyone know how to add these libraries in?

我正在尝试在应用程序上使用 Parse,我是 swift 的新手。但是我下载了 Xcode 7 并且似乎缺少 libz.dylib libsqlite3.dylib 并且当我编译和构建它成功完成但 Parse 没有显示任何数据保存。我尝试将 -lz 和 -lsqlite3 添加到“其他链接器标志”上,但无法解决问题。有人知道如何添加这些库吗?

回答by jayesh rajput

  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/. From /usr/lib/you can add libz.dyliband libsqlite3.dylib.
  1. 转到构建阶段 > 将二进制文件与库链接 > + > 添加其他...
  2. 进入文件选择窗口后,执行“CMD”+Shift+G(转到文件夹)并键入/usr/lib/. 从/usr/lib/你可以添加libz.dyliblibsqlite3.dylib

https://forums.developer.apple.com/message/9176#9176

https://forums.developer.apple.com/message/9176#9176