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-6643] No generated Swift interface in Xcode for libgit2 code #49192

Open
mdiep opened this issue Dec 19, 2017 · 2 comments
Open

[SR-6643] No generated Swift interface in Xcode for libgit2 code #49192

mdiep opened this issue Dec 19, 2017 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@mdiep
Copy link
Contributor

mdiep commented Dec 19, 2017

Previous ID SR-6643
Radar None
Original Reporter @mdiep
Type Bug

Attachment: Download

Environment

Xcode 9.2.0
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9

Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug
Assignee @benlangmuir
Priority Medium

md5: 29425a09691456b69fb173648fe7680c

Issue Description:

1. Clone https://github.com/SwiftGit2/SwiftGit2. I'm currently on c0c382227ec424f8538ddd25597defb8c4d54984.
2. Open workspace in Xcode
3. Open Repository.swift
4. Ctrl-Command-Click on a libgit2 function like git_remote_lookup
5. Ask Xcode to show the generated Swift interface

I've attached the SourceKit log as suggested when I complained on twitter: https://twitter.com/mdiep/status/943162226789289984

@benlangmuir
Copy link
Member

I can reproduce with `SwiftGit2` using Xcode 9.2, and my log looks basically like the attached one. The problem seems to be related to relative search paths/working directory. I knew we had issues there for Swift files, but I didn't expect it for header-interface generation.

Workaround: in the xcode project, change the first path in HEADER_SEARCH_PATHS:

- External/libgit2/include
+ $(SRCROOT)/External/libgit2/include

@keith
Copy link
Collaborator

keith commented Jul 26, 2018

I filed a radar for this issue too http://www.openradar.me/42088037

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

3 participants