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

command 'make setup' fails on macOS high sierra #1055

Closed
6 of 16 tasks
vichug opened this issue Jan 5, 2019 · 5 comments
Closed
6 of 16 tasks

command 'make setup' fails on macOS high sierra #1055

vichug opened this issue Jan 5, 2019 · 5 comments
Labels
invalid …deemed unworthy

Comments

@vichug
Copy link

vichug commented Jan 5, 2019

Hey, after cloning current git repo, with homebrew already installed, succeeding at installing RVM,
i do make setupas advised in long install guide
but it fails after a long time
with an error code 1 that seems linked to a failed carthage build or linkage
due to incorrect swift version (?)

Expected:

expecting to succeed, and then to do make open

Actual:

here is some lines from the log that i thoguth were useful (will attach longer extract at end of post) :

[01:02:48]: ▸ ***  Skipped installing RxRealm.framework binary due to the error:
[01:02:48]: ▸ "Incompatible Swift version - framework was built with 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1) and the local version is 4.2.1 (swiftlang-1000.0.42 clang-1000.10.45.1)."

Reproduce:

  1. clone up to date repo
  2. cd in repo, then make setup

NOTES

i realized afterwards that my internet connection was down, whoch may explain part of the problems, for example i got this also :

[01:02:48]: ▸ ***  Skipped installing RxRealm.framework binary due to the error:
[01:02:48]: ▸ "Incompatible Swift version - framework was built with 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1) and the local version is 4.2.1 (swiftlang-1000.0.42 clang-1000.10.45.1)."
[01:02:48]: ▸ Falling back to building from the source
[01:04:46]: ▸ ***  Skipped installing realm-cocoa.framework binary due to the error:
[01:04:46]: ▸ "GitHub API request failed: networkError(Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."

Then got this, in red :

[01:04:48]: ▸ Falling back to building from the source
[01:04:49]: ▸ A shell task (/usr/bin/xcrun xcodebuild -project /Users/vichug/Documents/git/Provenance/Carthage/Checkouts/CocoaLumberjack/Lumberjack.xcodeproj CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES -list) failed with exit code 72:
[01:04:49]: ▸ xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH

APP VERSION

  • 1.5 beta
    • latest build (as of writing)
  • 1.4

APP SOURCE

  • Provenance-Emu GitHub  (Official)
  • Other  (Unofficial)

INSTALLED BY

PLATFORM

  • iPhone
  • iPad
  • Apple TV

iOS/tvOS VERSION

  • Latest (11.3)
  • 10.x
  • 9.x
  • 8.x

🚫 We DO NOT support unofficial builds installed from 3rd-party sites. (Official Install)
Need help or have a suggestion? Join our Official Discord

@issuelabeler issuelabeler bot added the bug something broken that needs fixing, confirmed and reproduceable label Jan 5, 2019
@vichug
Copy link
Author

vichug commented Jan 5, 2019

In case the problem was really, in the end, jsut the lack of internet ; is it safe to re-clone the repo and re-try everything, or do i most probably need to clean some things on my computer ?

@JoeMatt
Copy link
Member

JoeMatt commented Jan 5, 2019

The swift version isn’t an error, it’s just saying the prebuilt binary on their github is incompatible so it builds from source.
It looks like you’re having networking or authentication issues with github.

@JoeMatt
Copy link
Member

JoeMatt commented Jan 5, 2019

Also you’re missing Xcode command line tools. Either Xcode isn’t installed, or the command line version isn’t set in XCode’s preferences. Google how to setup Xcode command line tools, I’m mobile so I don’t have the details on hand.

@JoeMatt JoeMatt closed this as completed Jan 5, 2019
@JoeMatt JoeMatt added invalid …deemed unworthy and removed bug something broken that needs fixing, confirmed and reproduceable labels Jan 5, 2019
@urherenow
Copy link
Contributor

urherenow commented Jan 5, 2019

I literally JUST built from source. It's the most perfect it has been. First, run
xcode-select --install
to be sure you have the tools. Then:

  1. Will need this…
    brew install git-lfs

  2. Wouldn't hurt to run these (because make setup currently only runs brew update which doesn't actually upgrade your brew installed packages…)
    brew update
    brew upgrade

  3. Good chance you'll need to do this after the above if you haven't already…
    gem update --system

and clone the repo. Before doing "make setup", do this:
rm -rf Carthage/Checkouts

almost forgot... Follow this too, just in case: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
and add your user info to git by running:
git config --global user.name "yourusername"
git config --global user.email "your@email"

@vichug
Copy link
Author

vichug commented Jan 6, 2019

Hey,
I had several issues - network was one, but the XCode configuration too.
xcodebuildneeds full xcode installation now and not just command line developer tools (see nodejs/node-gyp#1057 ) ; and it seems it incorrectly tries to use the commandline tools if you installed them before installing full XCode application. The solution is here : https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error/17980786#17980786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid …deemed unworthy
Projects
None yet
Development

No branches or pull requests

3 participants