tmignore icon indicating copy to clipboard operation
tmignore copied to clipboard

Homebrew install fails

Open fuerst opened this issue 4 years ago β€’ 23 comments

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

fuerst avatar May 01 '20 14:05 fuerst

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.

samuelmeuli avatar May 01 '20 22:05 samuelmeuli

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

craftedsystems avatar May 04 '20 08:05 craftedsystems

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

samuelmeuli avatar May 04 '20 14:05 samuelmeuli

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

craftedsystems avatar May 05 '20 09:05 craftedsystems

Also having the same error.

atymic avatar May 31 '20 01:05 atymic

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 avatar Jun 02 '20 14:06 samuelmeuli

Prebuilt binaries are available on the Releases page.

samuelmeuli avatar Jun 02 '20 14:06 samuelmeuli

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

onlinelaser avatar Jun 05 '20 12:06 onlinelaser

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

atymic avatar Jun 09 '20 05:06 atymic

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

craftedsystems avatar Jul 10 '20 05:07 craftedsystems

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?

aboutandre avatar Sep 20 '20 09:09 aboutandre

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?!

borekb avatar Sep 27 '20 18:09 borekb

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

heinzl avatar Oct 20 '20 13:10 heinzl

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 avatar Nov 08 '20 17:11 stevo-knievo

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?

stevo-knievo avatar Nov 08 '20 17:11 stevo-knievo

Homebrew install in Big Sur also does not work unfortunately.

tholu avatar Dec 10 '20 23:12 tholu

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 πŸ™Œ

kachkaev avatar Feb 21 '21 21:02 kachkaev

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

fuerst avatar Feb 22 '21 07:02 fuerst

Just added a PR which works around the install problem: https://github.com/samuelmeuli/homebrew-tap/pull/3

fuerst avatar Feb 22 '21 08:02 fuerst

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

dteirney avatar May 23 '21 11:05 dteirney

Any updates on this?

DanielSoCra avatar Nov 13 '21 15:11 DanielSoCra

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

St1c avatar Jun 20 '22 10:06 St1c

Bruh

mikkan-39 avatar Mar 06 '23 16:03 mikkan-39