libgit2 / objective-git

Objective-C bindings to libgit2
MIT License
1.16k stars 280 forks source link

How do I build ObjectiveGit.framework containing all dependencies? #701

Open marcuswestin opened 4 years ago

marcuswestin commented 4 years ago

Thanks so much for this project! I hope this is a trivial thing to answer - any help would be super appreciated.

How do I build ObjetiveGit.framework with all dependencies included (equivalent to Carthage/Build/Mac/ObjectiveGit.framework)?

I have a fork with changes to run on macOS Cataline/Xcode 11, and have tried everything I can think of:

and more.

Anyone know what to run and where to look for the output?

Thanks!

marcuswestin commented 4 years ago

The motivation for the fork may be relevant: the most recent release does not work in Catalina/XCode11:

Using latest release:

# Cartfile:
github "libgit2/objective-git"
# Build works:
Carthage update
# After including framework in Xcode, build works but get runtime error:
> dyld:
  Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
  Referenced from: ...
  Reason: image not found

Using master:

# Cartfile:
github "libgit2/objective-git" "master"
# Build fails on Catalina/Xcode 11:
carthage update
Screen Shot 2019-12-05 at 4 08 22 PM
marcuswestin commented 4 years ago

I eventually got this working! See #699 for some of the issues and eventual solution