Coder Social home page Coder Social logo

Comments (12)

mxcl avatar mxcl commented on June 17, 2024 155

Most suggestions seem to imply your xcode-select path is wrong. You could do the common suggestion of:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

from homebrew-made.

shiny avatar shiny commented on June 17, 2024 7

Most suggestions seem to imply your xcode-select path is wrong. You could do the common suggestion of:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Cool, it's working now hahahaha
Thank you!

from homebrew-made.

PeterKaminski09 avatar PeterKaminski09 commented on June 17, 2024 5

Most suggestions seem to imply your xcode-select path is wrong. You could do the common suggestion of:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

I've found that
sudo xcode-select -r will reset the path to /Applications/Xcode.app/Contents/Developer
You can run sudo xcode-select -p to show the current path.

http://iosdevelopertips.com/xcode/xcode-select-managing-multiple-versions-of-xcode.html

from homebrew-made.

kornerr avatar kornerr commented on June 17, 2024 2

I've just had the same error when running mint run xcodegen while using Mintfile.

@mxcl's answer did help:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

from homebrew-made.

mxcl avatar mxcl commented on June 17, 2024

I need the full logs. But looks like something is broken with your Xcode installation to me.

from homebrew-made.

shiny avatar shiny commented on June 17, 2024

This log is full.
I've also tried brew install --verbose --debug mxcl/made/swift-sh
Here is the log:

➜  ~ brew install --verbose --debug mxcl/made/swift-sh

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/mxcl/homebrew-made/swift-sh.rb
==> Installing swift-sh from mxcl/made
/usr/bin/sandbox-exec -f /private/tmp/homebrew20190112-13451-1bmvfm7.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/ruby-macho-2.1.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/rubocop-rspec-1.31.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/rubocop-0.62.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/unicode-display_width-1.4.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/ruby-progressbar-1.10.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/rainbow-3.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/powerpack-0.1.2/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/plist-3.5.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/parser-2.5.3.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/parallel-1.12.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/jaro_winkler-1.5.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/jaro_winkler-1.5.1:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/backports-3.11.4/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/ast-2.4.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/activesupport-5.2.2/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/tzinfo-1.2.5/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/thread_safe-0.3.6/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/minitest-5.11.3/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/i18n-1.4.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/concurrent-ruby-1.1.4/lib:/Library/Ruby/Gems/2.3.0/gems/did_you_mean-1.0.0/lib:/Library/Ruby/Site/2.3.0:/Library/Ruby/Site/2.3.0/x86_64-darwin18:/Library/Ruby/Site/2.3.0/universal-darwin18:/Library/Ruby/Site:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin18:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0/universal-darwin18:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/x86_64-darwin18:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18:/usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/mxcl/homebrew-made/swift-sh.rb --verbose --debug
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/mxcl/homebrew-made/swift-sh.rb
==> Cloning https://github.com/mxcl/swift-sh
git --git-dir /Users/daijie/Library/Caches/Homebrew/swift-sh--git/.git status -s
Updating /Users/daijie/Library/Caches/Homebrew/swift-sh--git
git config remote.origin.url https://github.com/mxcl/swift-sh
git config remote.origin.fetch \+refs/heads/master:refs/remotes/origin/master
git config remote.origin.tagOpt --no-tags
git fetch origin
==> Checking out branch master
git checkout -f master --
Already on 'master'
Your branch is up to date with 'origin/master'.
git reset --hard origin/master
HEAD is now at 2a223fc .some
cp -pR /Users/daijie/Library/Caches/Homebrew/swift-sh--git/Tests/. /private/tmp/d20190112-13452-1je5zwe/Tests
cp -pR /Users/daijie/Library/Caches/Homebrew/swift-sh--git/README.md /private/tmp/d20190112-13452-1je5zwe/README.md
cp -pR /Users/daijie/Library/Caches/Homebrew/swift-sh--git/.gitignore /private/tmp/d20190112-13452-1je5zwe/.gitignore
cp -pR /Users/daijie/Library/Caches/Homebrew/swift-sh--git/Package.swift /private/tmp/d20190112-13452-1je5zwe/Package.swift
cp -pR /Users/daijie/Library/Caches/Homebrew/swift-sh--git/Sources/. /private/tmp/d20190112-13452-1je5zwe/Sources
cp -pR /Users/daijie/Library/Caches/Homebrew/swift-sh--git/.git/. /private/tmp/d20190112-13452-1je5zwe/.git
cp -pR /Users/daijie/Library/Caches/Homebrew/swift-sh--git/main.swift /private/tmp/d20190112-13452-1je5zwe/main.swift
cp -pR /private/tmp/d20190112-13452-1je5zwe/Tests/. /private/tmp/swift-sh-20190112-13452-gibbm8/Tests
cp -pR /private/tmp/d20190112-13452-1je5zwe/README.md /private/tmp/swift-sh-20190112-13452-gibbm8/README.md
cp -pR /private/tmp/d20190112-13452-1je5zwe/.gitignore /private/tmp/swift-sh-20190112-13452-gibbm8/.gitignore
cp -pR /private/tmp/d20190112-13452-1je5zwe/Package.swift /private/tmp/swift-sh-20190112-13452-gibbm8/Package.swift
cp -pR /private/tmp/d20190112-13452-1je5zwe/Sources/. /private/tmp/swift-sh-20190112-13452-gibbm8/Sources
cp -pR /private/tmp/d20190112-13452-1je5zwe/.git/. /private/tmp/swift-sh-20190112-13452-gibbm8/.git
cp -pR /private/tmp/d20190112-13452-1je5zwe/main.swift /private/tmp/swift-sh-20190112-13452-gibbm8/main.swift
chmod -Rf +w /private/tmp/d20190112-13452-1je5zwe
git --git-dir /Users/daijie/Library/Caches/Homebrew/swift-sh--git/.git show -s --format=\%cD
==> swift build --configuration release -Xswiftc -static-stdlib --disable-sandbox
error: terminated(72): xcrun --sdk macosx --find xctest output:


/usr/bin/curl --version
/usr/libexec/java_home --xml --failfast
/usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
BuildError: Failed executing: swift build --configuration release -Xswiftc -static-stdlib --disable-sandbox
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: Error: An exception occurred within a child process:
  SystemExit: exit
/usr/local/Homebrew/Library/Homebrew/debrew.rb:56:in `exit'
/usr/local/Homebrew/Library/Homebrew/debrew.rb:56:in `choose'
/usr/local/Homebrew/Library/Homebrew/debrew.rb:112:in `block in debug'
/usr/local/Homebrew/Library/Homebrew/debrew.rb:111:in `loop'
/usr/local/Homebrew/Library/Homebrew/debrew.rb:111:in `debug'
/usr/local/Homebrew/Library/Homebrew/debrew.rb:14:in `rescue in raise'
/usr/local/Homebrew/Library/Homebrew/debrew.rb:10:in `raise'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1921:in `block in system'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1858:in `open'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1858:in `system'
/usr/local/Homebrew/Library/Taps/mxcl/homebrew-made/swift-sh.rb:9:in `install'
/usr/local/Homebrew/Library/Homebrew/debrew.rb:22:in `block in install'
/usr/local/Homebrew/Library/Homebrew/debrew.rb:92:in `debrew'
/usr/local/Homebrew/Library/Homebrew/debrew.rb:22:in `install'
/usr/local/Homebrew/Library/Homebrew/build.rb:143:in `block (2 levels) in install'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1136:in `block in brew'
/usr/local/Homebrew/Library/Homebrew/formula.rb:2055:in `block (2 levels) in stage'
/usr/local/Homebrew/Library/Homebrew/utils.rb:536:in `with_env'
/usr/local/Homebrew/Library/Homebrew/formula.rb:2054:in `block in stage'
/usr/local/Homebrew/Library/Homebrew/resource.rb:103:in `block in unpack'
/usr/local/Homebrew/Library/Homebrew/resource.rb:173:in `block in mktemp'
/usr/local/Homebrew/Library/Homebrew/mktemp.rb:55:in `block in run'
/usr/local/Homebrew/Library/Homebrew/mktemp.rb:55:in `chdir'
/usr/local/Homebrew/Library/Homebrew/mktemp.rb:55:in `run'
/usr/local/Homebrew/Library/Homebrew/resource.rb:172:in `mktemp'
/usr/local/Homebrew/Library/Homebrew/resource.rb:98:in `unpack'
/usr/local/Homebrew/Library/Homebrew/resource.rb:75:in `stage'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/forwardable.rb:202:in `stage'
/usr/local/Homebrew/Library/Homebrew/formula.rb:2030:in `stage'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1131:in `brew'
/usr/local/Homebrew/Library/Homebrew/build.rb:114:in `block in install'
/usr/local/Homebrew/Library/Homebrew/utils.rb:536:in `with_env'
/usr/local/Homebrew/Library/Homebrew/build.rb:111:in `install'
/usr/local/Homebrew/Library/Homebrew/build.rb:192:in `<main>'
➜  ~

from homebrew-made.

mxcl avatar mxcl commented on June 17, 2024

Hi, the original log stated: Last 15 lines from /Users/daijie/Library/Logs/Homebrew/swift-sh/01.swift:

Please provide the full log found in the file it specified.

Also I need the output from brew --env. You should also fix any errors brew doctor says as usual.

from homebrew-made.

shiny avatar shiny commented on June 17, 2024

got it,

01.swift

2019-01-12 23:07:18 +0800

swift
build
--configuration
release
-Xswiftc
-static-stdlib
--disable-sandbox

error: terminated(72): xcrun --sdk macosx --find xctest output:

HOMEBREW_VERSION: 1.9.1
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 241ee989bb6a917cb6000a1aa06aa341c465a1b3
Last commit: 3 days ago
Core tap ORIGIN: https://mirrors.ustc.edu.cn/homebrew-core.git
Core tap HEAD: 884cbccc5413a32563cf1ae252cbd523ae0d4518
Core tap last commit: 29 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CACHE: /Users/daijie/Library/Caches/Homebrew
CPU: dodeca-core 64-bit kabylake
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.17.2 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.14.2-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: 10.1

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j12
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.14
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin

from homebrew-made.

shiny avatar shiny commented on June 17, 2024

I reinstalled the homebrew, now swift sh is on my mac but when i run the demo ./script
it shows
image

image

from homebrew-made.

mxcl avatar mxcl commented on June 17, 2024

It appears that SwiftPM itself is unable to function.

This Google may help:
https://www.google.com/search?client=safari&rls=en&q=xcrun+--sdk+macosx+--find+xctest+output&ie=UTF-8&oe=UTF-8

from homebrew-made.

mxcl avatar mxcl commented on June 17, 2024

Glad to hear.

If you found my help useful, please consider reimbursing my time by contributing to my Patreon.

from homebrew-made.

Acshu-tech avatar Acshu-tech commented on June 17, 2024

Most suggestions seem to imply your xcode-select path is wrong. You could do the common suggestion of:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

You really saved my day, thank you!

from homebrew-made.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.