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

Building Objective-Git for accessing Github via SSH fails #646

Closed
ralfebert opened this issue Mar 12, 2018 · 5 comments
Closed

Building Objective-Git for accessing Github via SSH fails #646

ralfebert opened this issue Mar 12, 2018 · 5 comments

Comments

@ralfebert
Copy link

ralfebert commented Mar 12, 2018

I am currently trying to build the Objective-Git master branch to be able to connect to Github again via SSH in an iOS Xcode project as there seems to be no updated binary as of now.

When I try to build via Carthage, Cartfile:

github "libgit2/objective-git" "master"

via:

carthage update --platform iOS

I get:

xcodebuild: error: Scheme ObjectiveGit iOS is not currently configured for the archive action.

I also tried building via submodule / project embedded in Xcode as described in https://github.com/libgit2/objective-git#subproject , which seems to work fine, I also see OpenSSH+libssl being built, but at runtime I get an "unsupported URL protocol" error (I guess libgit2 doesn't pick up the ssh library?)

Any hints how to build and embed the updated Objective-Git currently in an iOS Xcode9 project?

@ralfebert
Copy link
Author

Hmm, I got it to build using Carthage by manually changing the scheme and enabling the iOS framework for the archive build, but I still get the "unsupported URL protocol" error at runtime even though the SSH library was built. What's the trick to build Objective-Git with SSH support?

@ralfebert
Copy link
Author

hmm, libssl and libssh2 were built successful, but build-libgit2.log says:

-- Checking for module 'libssh2'
--   Package 'libssl', required by 'libssh2', not found
-- LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path.

@mssun
Copy link
Contributor

mssun commented Mar 25, 2018

I have the same issue to build the master branch with carthage. @ralfebert Did you know what cause this error?

@atYuguo
Copy link

atYuguo commented Apr 3, 2018

Greetings, anyone know how is this happening?

@tiennou
Copy link
Contributor

tiennou commented Aug 10, 2018

We've just released 0.14.1, which should fix this issue, so I'm closing this. Feel free to reopen if applicable though.

@tiennou tiennou closed this as completed Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants