samuelmeuli / tmignore

๐Ÿ•” Exclude development files from Time Machine backups
MIT License
324 stars 3 forks source link

Homebrew install fails #9

Open fuerst opened 4 years ago

fuerst commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

samuelmeuli commented 4 years ago

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

craftedsystems commented 4 years ago

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 commented 4 years ago

Also having the same error.

samuelmeuli commented 4 years ago

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

samuelmeuli commented 4 years ago

Prebuilt binaries are available on the Releases page.

onlinelaser commented 4 years ago

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 commented 4 years ago

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

craftedsystems commented 4 years ago

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

aboutandre commented 3 years ago

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 commented 3 years ago

I'm also getting the _"sandbox-exec: sandboxapply: 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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Homebrew install in Big Sur also does not work unfortunately.

kachkaev commented 3 years ago

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 bs.' 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 commented 3 years ago

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

fuerst commented 3 years ago

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

dteirney commented 3 years ago

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

DanielSoCra commented 2 years ago

Any updates on this?

St1c commented 2 years ago

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

mikkan-39 commented 1 year ago

Bruh