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
The documentation comment for CSetting.headerSearchPath(_ path: String, _ condition: BuildSettingCondition? = nil) says
/// - path: The path of the directory that should be searched for headers. The path is relative to the target's directory.
However, in the following example, the corresponding target in the generated Xcode project does not translate the path into one that is relative to the target's directory.
Steps to reproduce:
Open the attached project
Run swift package update
Run swift package generate-xcodeproj
Open GeoZone.xcodeproj
Expected Result
The Header Search Paths build setting for the geos target has the entry $(SRCROOT)/.build/checkouts/geos/Sources/geos/include
Actual Result
The Header Search Paths build setting for the geos target has the entry include
The text was updated successfully, but these errors were encountered:
generate-xcodeprojis indeed being deprecated — if there's a use-case not covered by Xcode's ability to directly open packages, please feel free to let us know here or in the forums.
Attachment: Download
Environment
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Target: x86_64-apple-darwin19.3.0
Additional Detail from JIRA
md5: 222f6fd77000af0c44ee69b9060e6230
Issue Description:
Discussion
Originally reported in GEOSwift/GEOSwift#194
The documentation comment for
CSetting.headerSearchPath(_ path: String, _ condition: BuildSettingCondition? = nil)
saysHowever, in the following example, the corresponding target in the generated Xcode project does not translate the path into one that is relative to the target's directory.
Steps to reproduce:
Open the attached project
Run
swift package update
Run
swift package generate-xcodeproj
Open GeoZone.xcodeproj
Expected Result
$(SRCROOT)/.build/checkouts/geos/Sources/geos/include
Actual Result
include
The text was updated successfully, but these errors were encountered: