view raw
eason eason - 7 months ago 41
Swift Question

Xcode build Perfect failure -- COpenSSL not found

Xcode: 8.0

Swift toolchain: 3.0 release


.Package(url:"", 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


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.