You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ swift package --version
Swift Package Manager - Swift 5.3.0
Additional Detail from JIRA
Votes
1
Component/s
Package Manager
Labels
Bug
Assignee
None
Priority
Medium
md5: b1a28aaedfa4ce21532b7f92dceab770
Issue Description:
SwiftPM supports to specify custom header directories with .headerSearchPath with target directory relative path. It adds -I options to compiler arguments.
"swift package generate-xcodeproj" also adds them to HEADER_SEARCH_PATHS, but it just add it as -I./Headers, which is not resolved as target directory relative path.
I think SwiftPM should set HEADER_SEARCH_PATHS with $(SRCROOT)/Sources/Example/Headers.
Environment
$ swift package --version
Swift Package Manager - Swift 5.3.0
Additional Detail from JIRA
md5: b1a28aaedfa4ce21532b7f92dceab770
Issue Description:
SwiftPM supports to specify custom header directories with .headerSearchPath with target directory relative path. It adds -I options to compiler arguments.
"swift package generate-xcodeproj" also adds them to HEADER_SEARCH_PATHS, but it just add it as -I./Headers, which is not resolved as target directory relative path.
I think SwiftPM should set HEADER_SEARCH_PATHS with $(SRCROOT)/Sources/Example/Headers.
One temporary workaround is creating a symbolic link of Sources/Example/Headers in project root dir. (like https://github.com/swiftwasm/wamr-swift/tree/aa2991edaf43bc6301972fb3d16c731dad71d25c)
The text was updated successfully, but these errors were encountered: