git-up / GitUp

The Git interface you've been missing all your life has finally arrived.
http://gitup.co
GNU General Public License v3.0
11.45k stars 1.24k forks source link

Missing package product 'Libgit2Origin' #915

Open NikKovIos opened 1 year ago

NikKovIos commented 1 year ago

When trying to build the repo there is an error: Missing package product 'Libgit2Origin'
There is nothing in Getting Started section about this.

image

Also I've found the libgit2.xcodeproj in Third-Party folder, but there are red marked missing files in this project.

lucasderraugh commented 1 year ago

I think you have to run the update-xcode.sh. If that resolves it then we should update the README. Ideally I could add it to a build phase and skip the manual step.

NikKovIos commented 1 year ago

Firstly:

$ bash update-xcode.sh update-xcode.sh: line 8: cmake: command not found mv: ./xcode/src/git2/sys/features.h: No such file or directory

so I did brew install cmake and repeat the command. The output was Build files have been written to: ~/GitUp/GitUpKit/Third-Party/libgit2/xcode`

But it's still an error:

image
lucasderraugh commented 1 year ago

I'm away from my computer this week, but I'll be back next week and look into the steps for a clean install.

lucasderraugh commented 1 year ago

@NikKovIos I just did a clean run on my end and it looked like this:

  1. git clone --recursive git@github.com:git-up/GitUp.git
  2. cd GitUp/GitUpKit/Third-Party/libgit2 (not sure that you need to cd here, rather than just run the script, but that's what I did)
  3. ./update-xcode.sh (cmake --version yielded cmake version 3.25.2)
  4. Copy my DEVELOPMENT_TEAM.xcconfig into the GitUp/Xcode-Configurations folder so code signing issues are out of the way (this is explained in the README, along with the alternative of removing all the code signing details)
  5. Open GitUp/GitUp.xcodeproj
  6. Run

If this doesn't work for you then I would try deleting derived data/cleaning build folders and reopening just that project.