Closed SlaunchaMan closed 4 years ago
Can confirm this. Removing the generated HEADER_SEARCH_PATHS
for the Kanna target fixes this, which is set to:
$(SRCROOT)/.build/checkouts/Kanna/Modules
With some further testing, removing the line
dependencies: ["libxml2"],
In the Package.swift fixes the issue. It still works with swift build
and now also works with swift package generate-xcodeproj
.
Maybe using the same trick as with pkgConfig
and provider
, checking the swift version (and platform?), could help here?
@djbe Thank you for the very useful information and PR.
@SlaunchaMan I've released a new version(5.2.3). Please try it.
Works like a charm, thank you for the quick response!
Description:
It looks like the Package.swift file for Kanna is duplicating libxml2 on Xcode 12:
Interestingly, using
swift build
appears to work fine.Installation method:
Kanna version (or commit hash):
5.2.2
swift --version
Xcode version (optional):
Version 12.0.1 (12A7300)