7

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

eason
  • 2,854
  • 3
  • 16
  • 18
  • Official answer: https://gist.github.com/kjessup/b7d1d513e1ea2bec96e2311cfe6c671d#file-gistfile1-txt – eason Sep 22 '16 at 11:58

2 Answers2

12

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.

HiveHicks
  • 2,294
  • 5
  • 28
  • 42
1

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

Eric3
  • 1,021
  • 9
  • 10