Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-2949] SwiftPM Generated Xcode project does not include headers for C targets #5195

Closed
colemancda opened this issue Oct 14, 2016 · 3 comments
Labels

Comments

@colemancda
Copy link

Previous ID SR-2949
Radar None
Original Reporter @colemancda
Type Bug
Status Resolved
Resolution Invalid

Attachment: Download

Environment

OS X 10.12 Xcode 8

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: abdf5e97962b63fd7e47dd8d2ec89f61

Issue Description:

For a C target with the SwiftPM, compiling from the command line will work fine, but it will not compile from Xcode. The fix is to add HEADER_SEARCH_PATHS = $SRCROOT/Sources/cTargetName/include to the generated .xcconfig. Another issue is that the include folder does not appear under the sources group in Xcode.

@ankitspd
Copy link
Member

Can you provide a sample project with this issue?
Is this with default toolchain in Xcode 8?

@colemancda
Copy link
Author

Example.zip Yes, the default Xcode 8 toolchain.

@ankitspd
Copy link
Member

Thanks I tested the example project, it is infact broken in Swift 3 release/Xcode 8, however both of the issues are resolved in current master and the project builds successfully without any modification to generated Xcode project.

As of now you can either use Xcode 8.1 beta (default toolchain or nightly toolchain) or a nightly toolchain in Xcode 8 available at swift.org

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants