Xcode build Perfect failure — COpenSSL not found

寵の児 提交于 2019-12-22 04:38:11

问题


Xcode: 8.0

Swift toolchain: 3.0 release

Perfect: .Package(url:"https://github.com/PerfectlySoft/Perfect-HTTPServer.git", majorVersion: 2, minor: 0),


There is fine to run swift build in terminal.

But I'm run swift package generate-xcodeproj and open project with Xcode, Run it, then get error when build PerfectNet framework.

ld: library not found for -lCOpenSSL for architecture x86_64


回答1:


You need to add the following line to your project's (not target) "Library Search Paths" setting: "$(PROJECT_DIR)/**" (including quotes).

Unfortunately, as for now, you need to do that each time you add a depedency and regenerate project as a result.




回答2:


Update to Xcode 8.1, which fixes this particular issue when generating project files.



来源:https://stackoverflow.com/questions/39556483/xcode-build-perfect-failure-copenssl-not-found

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