Kitura/Kitura-Sample

ld: library not found for -lCHTTPParser for architecture x86_64

Closed this issue · 4 comments

Got this error when building in Xcode on OS X El Capitan 10.11.6 (15G31):

ld: library not found for -lCHTTPParser for architecture x86_64 #51

Any idea how to resolve this issue?

Thanks.

Which version of Xcode?

@ianpartridge Version 8.0 (8A218a)
Also tried on Version 8.1 (8B62), got the same error.

What was in the Package.swift file that you used to generate the Xcode project?

I assume you were using the Swift toolchain that came with Xcode and that when you migrated from Xcode 8.0 to Xcode 8.1 you regenerated the Xcode project.

@ianpartridge @shmuelk Thanks for the help, I solved the problem by adding "$SRCROOT/.build/debug" to the Library Search Path in Kitura target. It now compiles fine.

This was suggested by someone in the Kitura Slack channel, I don't know why it works though.