Kitura: Kitura 0.13.6 doesn't build in Xcode
Hello,
Bringing this issue to a wider audience. Originally reported in Kitura-net: Issue #28
Building Kitura 0.13.6 using swift build
works ok. However when building from Xcode following error is returned when linking Kitura-net:
ld: library not found for -lCHttpParser for architecture x86_64
Xcode: 7.3.1 (7D1014)
Toolchain: Swift Development Snapshot 2016-05-03 (a)
I have previously installed and force-linked curl with
brew install curl && brew link curl --force
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (10 by maintainers)
Found it!
New Kitura fix:
swift build -X
, open in Xcode, build and you get well known linker errorcd ~/Library/Developer/Xcode/DerivedData/Kitura<something>/Build/Products/Debug
cp CHttpParser.dylib libCHttpParser.dylib
Voila, it builds!It looks like they changed structure of project.pbxproj file, one of the changes is naming of frameworks (used to be lib[nameOfFramework] and now they removed lib)
Now for some strange reason, in case of CHttpParser which is just a modulemap and c files Xcode still looks under an old name. I can not explain that any further, but I’d say it’s a bug with Xcode.