Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./fetchDependencies fails #1221

Closed
bfree-github opened this issue Jan 27, 2021 · 4 comments
Closed

./fetchDependencies fails #1221

bfree-github opened this issue Jan 27, 2021 · 4 comments
Labels
Answered A question was answered Question

Comments

@bfree-github
Copy link

When running ./fetchDependencies with either --macos, --ios, or --all I get:

Please be patient on first build
Building external libraries for platform macOS and destination macOS
./fetchDependencies: /usr/local/bin/xcpretty: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

I'm on MacOS 10.15.7 (Catalina) with Xcode 12.4

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby does not exist, but
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby does.

I manually installed xcpretty: sudo gem install xcpretty
then: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

./fetchDependencies then succeeds; you might want to update your documentation.

@past-due
Copy link
Collaborator

xcpretty isn't necessary, but sudo xcode-select -s /Applications/Xcode.app/Contents/Developer looks to be what was needed in your case.

@billhollings
Copy link
Contributor

@bfree-github

xcpretty isn't necessary, but sudo xcode-select -s /Applications/Xcode.app/Contents/Developer looks to be what was needed in your case.

xcode-select shouldn't have been necessary. Is there an issue here that needs to be addressed, or was it just that your Xcode installation needed this realignment?

@cdavis5e
Copy link
Collaborator

cdavis5e commented Feb 1, 2021

xcode-select shouldn't have been necessary. Is there an issue here that needs to be addressed, or was it just that your Xcode installation needed this realignment?

I think it's that the active Developer dir needed to be an Xcode installation, because the command line tools for whatever reason don't support xcodebuild.

@past-due
Copy link
Collaborator

past-due commented Feb 1, 2021

I think it's that the active Developer dir needed to be an Xcode installation, because the command line tools for whatever reason don't support xcodebuild.

That matches my reading of the problem as well.

A reference: https://stackoverflow.com/a/17980786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Answered A question was answered Question
Projects
None yet
Development

No branches or pull requests

4 participants