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

Homebrew install fails #9

Open
fuerst opened this issue May 1, 2020 · 23 comments · May be fixed by #18
Open

Homebrew install fails #9

fuerst opened this issue May 1, 2020 · 23 comments · May be fixed by #18
Labels
bug Something isn't working

Comments

@fuerst
Copy link

fuerst commented May 1, 2020

Hi, when doing brew install samuelmeuli/tap/tmignore I get this error:

xcodebuild: error: Could not resolve package dependencies:
  sandbox-exec: sandbox_apply_container: Operation not permitted

make: *** [build] Error 74

I'm running as standard user (no admin) if that matters. Make log is attached.

01.make.txt

@samuelmeuli
Copy link
Owner

samuelmeuli commented May 1, 2020

My formula and build script are inspired by this one. Does brew install --build-from-source dark-mode work for you? If so, I probably got something wrong in the tmignore Xcode configuration.

@craftedsystems
Copy link

Hi, I get the same error as @fuerst. Installing dark-mode outputs not errors.

@samuelmeuli samuelmeuli transferred this issue from samuelmeuli/homebrew-tap May 4, 2020
@samuelmeuli samuelmeuli added the bug Something isn't working label May 4, 2020
@samuelmeuli samuelmeuli changed the title sandbox-exec: sandbox_apply_container: Operation not permitted Homebrew install fails May 4, 2020
@samuelmeuli
Copy link
Owner

Any luck with v1.2.1? I'm afraid I haven't been able to reproduce the error yet.

@craftedsystems
Copy link

nope, fails too

==> make build
Last 15 lines from /Users/mario/Library/Logs/Homebrew/tmignore/01.make:

Fetching https://github.com/IBM-Swift/HeliumLogger

Fetching https://github.com/SwiftyJSON/SwiftyJSON

Fetching https://github.com/apple/swift-log

Fetching https://github.com/jakeheis/SwiftCLI

Fetching https://github.com/samuelmeuli/swift-exec

xcodebuild: error: Could not resolve package dependencies:
  sandbox-exec: sandbox_apply_container: Operation not permitted

make: *** [build] Error 74

@atymic
Copy link

atymic commented May 31, 2020

Also having the same error.

@samuelmeuli
Copy link
Owner

I've tested the install on two machines and haven't encountered any issues:

  • macOS 10.15.4 and 10.15.5
  • Xcode 11.5
  • Homebrew 2.3.0-21-g7db771b

@samuelmeuli
Copy link
Owner

Prebuilt binaries are available on the Releases page.

@onlinelaser
Copy link

Thanks for the prebuilts, they work great
But +1 to this bug on Mojave 10.14.6
Homebrew 2.3.0 (git revision 467e0; last commit 2020-06-05)
Xcode 11.3.1

@atymic
Copy link

atymic commented Jun 9, 2020

After upgrading to Catalina and updating Xcode it works for me now :)
@onlinelaser try updating xcode?

@craftedsystems
Copy link

Same here: after upgrading to macOS Catalina, brew upgrade was successful.

@aboutandre
Copy link

Tried all the methods here and I'm also getting the same error. My system is, as of this moment, up-to-date:
Mac OS 10.15.6 (19G2021)
XCode 12.0 (12A7209)
Homebrew 2.5.1

Any ideas?

@borekb
Copy link

borekb commented Sep 27, 2020

I'm also getting the "sandbox-exec: sandbox_apply: Operation not permitted" error. I'm on macOS 10.15.17 and XCode 12.0.1.

BTW, I had to download the full XCode, command line tools were not enough. (Unfortunately, I didn't copy the error message.)

@samuelmeuli With the pre-built binaries, future upgrades won't work, right? Also, brew services start tmignore also won't be available I guess?!

@heinzl
Copy link

heinzl commented Oct 20, 2020

Hi, I have similar issue not related to this repository but the symptoms look very similar so maybe suffer from the same issue: https://community.sonarsource.com/t/xcodebuild-can-not-resolve-package-dependencies-using-build-wrapper-macosx-x86/32959

@stevo-knievo
Copy link

I'm also getting the sandbox-exec: sandbox_apply: Operation not permitted error as well.

macOS: 10.15.7 (19H15)
XCode: 12.1 (12A7403)
Homebrew: 2.5.8

Here the terminal output:

brew install samuelmeuli/tap/tmignore
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
condure
==> Updated Formulae
Updated 1 formula.
==> Updated Casks
vagrant                                  vagrant-vmware-utility

==> Installing tmignore from samuelmeuli/tap
==> Downloading https://github.com/samuelmeuli/tmignore/archive/v1.2.2.tar.gz
Already downloaded: /Users/stefan/Library/Caches/Homebrew/downloads/694e9e2acfa7fc1d36e4be32543d766098b853eaf69a98ec5ec66fbc803d0abd--tmignore-1.2.2.tar.gz
==> make build
Last 15 lines from /Users/stefan/Library/Logs/Homebrew/tmignore/01.make:

Fetching https://github.com/jakeheis/SwiftCLI

Fetching https://github.com/samuelmeuli/swift-exec

Fetching https://github.com/apple/swift-log

Fetching https://github.com/SwiftyJSON/SwiftyJSON

Fetching https://github.com/IBM-Swift/HeliumLogger

xcodebuild: error: Could not resolve package dependencies:
  sandbox-exec: sandbox_apply: Operation not permitted

make: *** [build] Error 74

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/samuelmeuli/homebrew-tap/issues

@stevo-knievo
Copy link

I tried the prebuilt binaries and it works.

To fix the macOS Catalina error

“tmignore” cannot be opened because the developer cannot be verified.
macOS cannot verify that this app is free from malware.

You have to run the following command (make sure you use the right path):
xattr -d com.apple.quarantine /usr/local/bin/tmignore

Question now is how to get the scheduler running?

@tholu
Copy link

tholu commented Dec 10, 2020

Homebrew install in Big Sur also does not work unfortunately.

@kachkaev
Copy link

I was so glad to discover this repo but then felt said in just two minutes after hitting this issue too. This reminded me of a famous monologue by Luis CK with this part on the airplaine wifi:

I was on an airplane and there was high-speed Internet on the airplane. That's the newest thing that I know exists. And I'm sitting on the plane and they go, open up your laptop, you can go on the Internet.

And it's fast, and I'm watching YouTube clips. It's amaz--I'm on an airplane! And then it breaks down. And they apologize, the Internet's not working. And the guy next to me goes, 'This is b___s___.' I mean, how quickly does the world owe him something that he knew existed only 10 seconds ago?

😂

Hope that this problem can be solved at some point. Great app idea @samuelmeuli regardless!

Meanwhile, if anyone knows of any easy-to-apply workarounds, please share 🙌

@fuerst
Copy link
Author

fuerst commented Feb 22, 2021

Workaround: Download and use the precompiled binary from the Releases page: https://github.com/samuelmeuli/tmignore/releases

@fuerst
Copy link
Author

fuerst commented Feb 22, 2021

Just added a PR which works around the install problem: samuelmeuli/homebrew-tap#3

@Frizlab Frizlab linked a pull request May 10, 2021 that will close this issue
@dteirney
Copy link

@samuelmeuli any chance you could please push in #18 and then release a new version so installation via Homebrew works again?

@DanielSoCra
Copy link

Any updates on this?

@St1c
Copy link

St1c commented Jun 20, 2022

same error here, any news or info how to resolve?

@mikkan-39
Copy link

Bruh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.