yonaskolb / yonaskolb/XcodeGen

`make install` failing: unable to copy `SettingPresets`

Open
#1,264 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

Steps to reproduce

  • Run sudo make install on macOS 12.5.1 (with zsh). This is the output:

Output

100%: Build succeeded
mkdir -p /usr/local/bin
cp -f /Users/[...]/XcodeGen/.build/apple/Products/Release/xcodegen /usr/local/bin/xcodegen
mkdir -p /usr/local/share/xcodegen
cp -R /SettingPresets /usr/local/share/xcodegen/SettingPresets
cp: /SettingPresets: No such file or directory
make: *** [install] Error 1

It seems that, for some reason, $(CURRENT_PATH) is becoming empty. Changing CURRENT_PATH = $(PWD) to

CURRENT_PATH = `pwd`

seems to solve the issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating CURRENT_PATH and the make install rule that copies SettingPresets, then reproduce sudo make install on macOS with the reported environment. Done means the install command resolves the source directory correctly and copies SettingPresets without the missing-file error.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.