yonaskolb / yonaskolb/XcodeGen
`make install` failing: unable to copy `SettingPresets`
Open
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 installon macOS 12.5.1 (withzsh). 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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