objective-git icon indicating copy to clipboard operation
objective-git copied to clipboard

How do I build ObjectiveGit.framework containing all dependencies?

Open marcuswestin opened this issue 6 years ago • 2 comments

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:

  • carthage build
  • script/cibuild
  • Xcode archive

and more.

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

Thanks!

marcuswestin avatar Dec 05 '19 20:12 marcuswestin

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 avatar Dec 05 '19 21:12 marcuswestin

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

marcuswestin avatar Dec 06 '19 16:12 marcuswestin