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

Shopify CLI not installing on mac 12.4 via homebrew. #376

Open
rk4bir opened this issue May 28, 2022 · 6 comments
Open

Shopify CLI not installing on mac 12.4 via homebrew. #376

rk4bir opened this issue May 28, 2022 · 6 comments

Comments

@rk4bir
Copy link

rk4bir commented May 28, 2022

# shopify install command ~ brew install shopify-cli

# Error output
==> Fetching shopify-cli from gem source
==> Installing shopify-cli from shopify/shopify
==> gem install /Users/<user>/Library/Caches/Homebrew/shopify-cli-2.17.0.gem --no-document --no-wrapper --no-user-install --insta
Last 15 lines from /Users/<user>/Library/Logs/Homebrew/shopify-cli/01.gem:
	from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/mkmf.rb:362:in `block in postpone'
	from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/mkmf.rb:332:in `open'
	from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/mkmf.rb:358:in `postpone'
	from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/mkmf.rb:1006:in `checking_for'
	from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/mkmf.rb:1118:in `have_func'
	from extconf.rb:6:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /usr/local/Cellar/shopify-cli/2.17.0/extensions/x86_64-darwin-21/3.1.0/racc-1.6.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/Cellar/shopify-cli/2.17.0/gems/racc-1.6.0 for inspection.
Results logged to /usr/local/Cellar/shopify-cli/2.17.0/extensions/x86_64-darwin-21/3.1.0/racc-1.6.0/gem_make.out

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/shopify/homebrew-shopify/issues
@tyssen
Copy link

tyssen commented Aug 10, 2022

I've got the same problem and same error output up to last 15 lines which then look like

2022-08-10 06:41:05 +0000

gem
install
/Users/*/Library/Caches/Homebrew/shopify-cli-2.22.0.gem
--no-document
--no-wrapper
--no-user-install
--install-dir
/opt/homebrew/Cellar/shopify-cli/2.22.0
--bindir
/opt/homebrew/Cellar/shopify-cli/2.22.0/bin
--
--skip-cli-build


Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
Shopify CLI not installing on mac 12.4 via homebrew. https://github.com/Shopify/homebrew-shopify/issues/376

@rk4bir did you ever get it resolved?

@rk4bir
Copy link
Author

rk4bir commented Aug 10, 2022

@tyssen yes and no. "Yes" because I have re-installed Monterey, "No" because I couldn't solve without having to re-install.

@tyssen
Copy link

tyssen commented Aug 10, 2022

@rk4bir Don't really want to have to do that. :/

@rk4bir
Copy link
Author

rk4bir commented Aug 10, 2022

@tyssen it's definitely the "XCode" issue. Try your magic :)

@nfauchelle
Copy link

nfauchelle commented Oct 14, 2022

I had this exact same issue.
I ran xcodebuild -runFirstLaunch on the command line.
Once that command completed I was able to install OK.

If you look at the error dump it mentions to do that:

... stuff...
Details:  Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin)
Please ensure Xcode packages are up-to-date — try running 'xcodebuild -runFirstLaunch'.

NSBundle error: Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
  
... more stuff...

@josephnaber
Copy link

thanks @nfauchelle xcodebuild -runFirstLaunch worked for me!

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

No branches or pull requests

4 participants