Homebrew-cask: “Failed to quarantine” an app during Install/Upgrade/Reinstall

Created on 2 Sep 2018  Â·  16Comments  Â·  Source: Homebrew/homebrew-cask

General troubleshooting steps

Note

Error detected during execution of brew update-reset && brew update

$  brew update-reset && brew update
==> Fetching /usr/local/Homebrew...
error: unknown option `shallow-since=refs/tags/1.7.2'
usage: git fetch [<options>] [<repository> [<refspec>...]]
   or: git fetch [<options>] <group>
   or: git fetch --multiple [<options>] [(<repository> | <group>)...]
   or: git fetch --all [<options>]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --all                 fetch from all remotes
    -a, --append          append to .git/FETCH_HEAD instead of overwriting
    --upload-pack <path>  path to upload pack on remote end
    -f, --force           force overwrite of local branch
    -m, --multiple        fetch from multiple remotes
    -t, --tags            fetch all tags and associated objects
    -n                    do not fetch all tags (--no-tags)
    -j, --jobs <n>        number of submodules fetched in parallel
    -p, --prune           prune remote-tracking branches no longer on remote
    --recurse-submodules[=<on-demand>]
                          control recursive fetching of submodules
    --dry-run             dry run
    -k, --keep            keep downloaded pack
    -u, --update-head-ok  allow updating of HEAD ref
    --progress            force progress reporting
    --depth <depth>       deepen history of shallow clone
    --unshallow           convert to a complete repository
    --update-shallow      accept refs that update .git/shallow
    --refmap <refmap>     specify fetch refmap
    -4, --ipv4            use IPv4 addresses only
    -6, --ipv6            use IPv6 addresses only


==> Resetting /usr/local/Homebrew...
Branch master set up to track remote branch master from origin.
Reset branch 'master'

==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard...

==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard...
Branch master set up to track remote branch master from origin.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.

==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...

==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...
Branch master set up to track remote branch master from origin.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.

==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-completions...

==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-completions...
Branch master set up to track remote branch master from origin.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.

==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...

==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Branch master set up to track remote branch master from origin.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.

==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes...

==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes...
Branch master set up to track remote branch master from origin.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.

==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-versions...

==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-versions...
Branch master set up to track remote branch master from origin.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.

==> Fetching /usr/local/Homebrew/Library/Taps/yudai/homebrew-gotty...

==> Resetting /usr/local/Homebrew/Library/Taps/yudai/homebrew-gotty...
Branch master set up to track remote branch master from origin.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.

Already up-to-date.

Description of issue

Since running the command brew update this week, I'm suddenly no longer able to install, reinstall or upgrade a “cask” package. I did not have this problem last week.

Command that failed

$ brew cask install fluor
==> Satisfying dependencies
==> Downloading https://resources.pyrolyse.it/distrib/Fluor/Fluor%202.0.2.dmg
Already downloaded: /Users/Nathalie/Library/Caches/Homebrew/downloads/65117e9a1ef9ba64db9833b7a3789fdf03c8c224d45fdfe8d35c6bcd4cafe15d--Fluor 2.0.2.dmg
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: error: 'quarantinePropertiesKey' is only available on OS X 10.10 or newer
      forKey: URLResourceKey.quarantinePropertiesKey
                             ^
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: note: add 'if #available' version check
      forKey: URLResourceKey.quarantinePropertiesKey
                             ^
Error: Failed to quarantine /Users/Nathalie/Library/Caches/Homebrew/downloads/65117e9a1ef9ba64db9833b7a3789fdf03c8c224d45fdfe8d35c6bcd4cafe15d--Fluor 2.0.2.dmg. Here's the reason:
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: error: 'quarantinePropertiesKey' is only available on OS X 10.10 or newer
      forKey: URLResourceKey.quarantinePropertiesKey
                             ^
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: note: add 'if #available' version check
      forKey: URLResourceKey.quarantinePropertiesKey
                             ^

Same output for brew cask upgrade and brew cask reinstall

Output of command with --force --verbose --debug

$ brew cask install --force --verbose --debug fluor
==> Hbc::Installer#install
==> Printing caveats
==> Hbc::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading https://resources.pyrolyse.it/distrib/Fluor/Fluor%202.0.2.dmg
Already downloaded: /Users/Nathalie/Library/Caches/Homebrew/downloads/65117e9a1ef9ba64db9833b7a3789fdf03c8c224d45fdfe8d35c6bcd4cafe15d--Fluor 2.0.2.dmg
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/Nathalie/Library/Caches/Homebrew/downloads/65117e9a1ef9ba64db9833b7a3789fdf03c8c224d45fdfe8d35c6bcd4cafe15d--Fluor 2.0.2.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/Nathalie/Library/Caches/Homebrew/downloads/65117e9a1ef9ba64db9833b7a3789fdf03c8c224d45fdfe8d35c6bcd4cafe15d--Fluor\ 2.0.2.dmg
==> /Users/Nathalie/Library/Caches/Homebrew/downloads/65117e9a1ef9ba64db9833b7a3789fdf03c8c224d45fdfe8d35c6bcd4cafe15d--Fluor 2.0.2.dmg is not quarantined
==> Quarantining /Users/Nathalie/Library/Caches/Homebrew/downloads/65117e9a1ef9ba64db9833b7a3789fdf03c8c224d45fdfe8d35c6bcd4cafe15d--Fluor 2.0.2.dmg
/usr/bin/swift /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift /Users/Nathalie/Library/Caches/Homebrew/downloads/65117e9a1ef9ba64db9833b7a3789fdf03c8c224d45fdfe8d35c6bcd4cafe15d--Fluor\ 2.0.2.dmg https://resources.pyrolyse.it/distrib/Fluor/Fluor\%202.0.2.dmg https://fluorapp.net/
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: error: 'quarantinePropertiesKey' is only available on OS X 10.10 or newer
      forKey: URLResourceKey.quarantinePropertiesKey
                             ^
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: note: add 'if #available' version check
      forKey: URLResourceKey.quarantinePropertiesKey
                             ^
Error: Failed to quarantine /Users/Nathalie/Library/Caches/Homebrew/downloads/65117e9a1ef9ba64db9833b7a3789fdf03c8c224d45fdfe8d35c6bcd4cafe15d--Fluor 2.0.2.dmg. Here's the reason:
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: error: 'quarantinePropertiesKey' is only available on OS X 10.10 or newer
      forKey: URLResourceKey.quarantinePropertiesKey
                             ^
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: note: add 'if #available' version check
      forKey: URLResourceKey.quarantinePropertiesKey
                             ^

/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/quarantine.rb:58:in `cask'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/download.rb:53:in `quarantine'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/download.rb:19:in `perform'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:148:in `download'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:64:in `fetch'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:92:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:21:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:14:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:34:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:90:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:156:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:121:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:7:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:89:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:161:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:161:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:144:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:121:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:7:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:89:in `<main>'

Output of brew cask doctor

$ brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.7.2-106-g794fe5d
Homebrew/homebrew-cask (git revision 82051; last commit 2018-09-02)
==> macOS
10.11.6
==> SIP
Disabled
==> Java
1.6.0_65-b14-468
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
/usr/local/Caskroom
==> Homebrew-Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (4076 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/x86_64-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/universal-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/universal-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/x86_64-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/universal-darwin9.0
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
==> Environment Variables
HOMEBREW_CASK_OPTS="--appdir=~/Applications/"
LC_ALL="en_US.UTF-8"
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm"
SHELL="/usr/local/bin/zsh"

Output of brew tap

$ brew tap
homebrew/boneyard
homebrew/cask
homebrew/completions
homebrew/core
homebrew/dupes
homebrew/versions
yudai/gotty

I thank you for your time, hard work and support. Great job for bringing such a great tool.

bug in progress

Most helpful comment

What an idiotic situation.

Gatekeeper is useless unless the downloading app sets a flag (seems a bit unsafe, but alright) and there’s no officially sanctioned way to set the flag after the fact (why?). So alright, we go out of our way to add the flag and improve security, but then apps enter into a special mode that requires moving the app with your mouse (er…). But wait! If you run a simple xattr command, you can tell the whole security system to screw itself and don’t check anything (what?!).

Basically: try to improve user security by leveraging the OS’s security model, and Apple will have you tripping the whole way. But if you’re a malicious actor trying to attack the user, right this way!

And have you been reading on Mojave? Seems like it’s getting even worse, asking for so many permissions, it looks like Vista.

All 16 comments

The new quarantine feature makes use of macOS's Command Line Tools to place Casks under Gatekeeper protection. However, in your case, your CLT installation is inconsistent:

error: 'quarantinePropertiesKey' is only available on OS X 10.10 or newer

but

$ brew cask doctor
==> macOS
10.11.6

Please run swift -v with the following snippet:

import Foundation
#if os(macOS) 
    print("macOS deployment target:", __MAC_OS_X_VERSION_MIN_REQUIRED) 
#endif

It should output something along the lines of macOS deployment target: 101106. Otherwise, swift is pointing to the wrong SDK; I'll push a workaround to detect this situation.

Hello, thanks for your prompt answer. Here's the output:

$ swift -v
Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1)
Target: x86_64-apple-macosx10.9
/Library/Developer/CommandLineTools/usr/bin/lldb "--repl=-target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -color-diagnostics"
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module>
    import weakref
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
Welcome to Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1). Type :help for assistance.
warning: Swift error in module repl_swift.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module dyld.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libz.1.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libedit.3.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libpanel.5.4.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreFoundation.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libncurses.5.4.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Foundation.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libSystem.B.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libauto.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libDiagnosticMessagesClient.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libicucore.A.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libextension.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module DiskArbitration.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libarchive.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libxml2.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CFNetwork.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SystemConfiguration.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Security.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module liblangid.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module IOKit.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libCRFSuite.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libc++abi.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libc++.1.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcache.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcommonCrypto.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcompiler_rt.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcopyfile.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcorecrypto.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libdispatch.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libdyld.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libkeymgr.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module liblaunch.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libmacho.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libquarantine.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libremovefile.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_asl.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_blocks.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_c.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_configuration.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_coreservices.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_coretls.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_dnssd.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_info.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_kernel.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_m.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_malloc.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_network.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_networkextension.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_notify.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_platform.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_pthread.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_sandbox.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_secinit.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_trace.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libunc.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libunwind.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libxpc.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libbz2.1.0.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module liblzma.5.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libbsm.0.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libxar.1.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libpam.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libOpenScriptingUtil.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module FSEvents.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CarbonCore.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Metadata.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module OSServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SearchKit.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module AE.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module LaunchServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module DictionaryServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SharedFileList.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libenergytrace.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libkxld.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module NetFS.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module TCC.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libmecabra.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CFOpenDirectory.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ServiceManagement.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libmarisa.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libxslt.1.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module NetAuth.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ApplicationServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module LanguageModeling.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libChineseTokenizer.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcmph.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libiconv.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreData.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module loginsupport.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreText.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ATS.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ColorSync.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module HIServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module LangAnalysis.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module PrintCore.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module QD.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SpeechSynthesis.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module IOSurface.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module MultitouchSupport.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Metal.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libFontParser.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libFontRegistry.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module AppleVPA.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module AppleJPEG.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcups.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreAudio.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module AudioToolbox.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libmetal_timestamp.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libCoreFSCache.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module IOAccelerator.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module OpenGL.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreVideo.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Kerberos.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module GSS.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libresolv.9.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libLinearAlgebra.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libGLU.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libGFXShared.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libGL.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Heimdal.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module OpenDirectory.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libheimdal-asn1.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CommonAuth.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libGLImage.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SecurityFoundation.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libCVMSPluginSupport.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libCoreVMClient.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libobjc.A.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libswiftCore.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libswiftDarwin.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsqlite3.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreGraphics.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ImageIO.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Accelerate.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module vImage.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module vecLib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libvDSP.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libvMisc.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libLAPACK.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libBLAS.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libSparseBLAS.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libJPEG.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libTIFF.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libPng.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libGIF.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libJP2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libRadiance.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcompression.dylib.
Debug info from this module will be unavailable in the debugger.

  1> import Foundation 
  2. #if os(macOS)  
  3.     print("macOS deployment target:", __MAC_OS_X_VERSION_MIN_REQUIRED)  
  4. #endif

macOS deployment target: 1090

Definitely a CLT installation which is too old (see e.g. Homebrew/brew#2918). I'll push a workaround to disable quarantine in these cases.

Definitely a CLT installation which is too old (…) I'll push a workaround to disable quarantine in these cases.

brew doctor catches those, if I’m not mistaken. Might be able to leverage its method for the workaround.

Not exactly a matter of old CLT, but (also) if Swift's deployment target is set to earlier than macOS 10.10.

Experiencing this too on..

==> macOS
10.12.2

Any known workarounds yet?

@jake-hwll, we're addressing this on Homebrew/brew#4796. In the meanwhile, you can use the --no-quarantine flag to work around this.

@amyspark The --no-quarantine argument doesn't seem to be working on 10.13.6. Every application I install via cask has the quarantine flag, and appears to be running in TransLocation mode. This is breaking many applications for me, like 1Password, Google Chrome, and Bartender. They either don't work or complain about not running in /Applications.

It seems globally quarantining all cask applications is having a severe negative impact across the board. Unfortunately, the suggested workaround of --no-quarantine doesn't appear to resolve the issue.

The only way I've been able to restore functionality on a per-app basis is to remove the quarantine flag using xattr -r -d com.apple.quarantine /Applications/nameOfAppHere.app. However, I read somewhere that Mojave 10.14 lacks the -r argument for xattr.

Hope that helps.

However, I read somewhere that Mojave 10.14 lacks the -r argument for xattr.

I am aware of this and have submitted a pull request - Homebrew/brew#4796.

It seems globally quarantining all cask applications is having a severe negative impact across the board. Unfortunately, the suggested workaround of --no-quarantine doesn't appear to resolve the issue.

There are two issues at play here. First, the --no-quarantine flag just tells Homebrew to not execute the quarantine process, it will not (currently) "un-quarantine" the download if it was quarantined previously. The second is common to all non-Apple update frameworks e.g. potionfactory/LetsMove#56, sparkle-project/Sparkle#832, Squirrel/Squirrel.Mac#182. In particular, please read http://www.openradar.me/radar?id=5022734169931776 for Apple's take on this issue.

tl;dr: Apple wants you to move the app into Applications using your mouse. This constitutes "user intent" for the purposes of Gatekeeper and disables translocation.

cc @Homebrew/cask for thoughts and comments on this. Should we roll back quarantine altogether? Or we can follow Sparkle's lead and avoid quarantining auto_updates Casks?

Or we can follow Sparkle's lead and avoid quarantining auto_updates Casks?

Wouldn’t that still leave every other cask with this issue?

Not quarantining on upgrade would also not work for us, as it’d defeat the purpose.

And from what I understand from that radar, using AppleScript to do the move is also insufficient.

What if instead of quarantining the download, we quarantined the app after moving? Would that work?

What if instead of quarantining the download, we quarantined the app after moving? Would that work?

No. The act of moving the app to /Applications using the Finder (whether by keyboard copy-paste or mouse drag-and-drop) is what Apple considers "user intent" and thus disables translocation.

(The AppleScript way involves the app calling a script to move itself to /Applications and then restarting. This one depends on each developer implementing the behaviour, and is of no help to us.)

I'm having trouble with this as well. My outputs are nearly identical to the OPs but are there any I can provide that would be useful? I'm running OS X 10.11.6 with Xcode 8.2.1

Should we roll back quarantine altogether?

I think we should consider this as the issues users are encountering don't seem to have a solution we can implement.

What an idiotic situation.

Gatekeeper is useless unless the downloading app sets a flag (seems a bit unsafe, but alright) and there’s no officially sanctioned way to set the flag after the fact (why?). So alright, we go out of our way to add the flag and improve security, but then apps enter into a special mode that requires moving the app with your mouse (er…). But wait! If you run a simple xattr command, you can tell the whole security system to screw itself and don’t check anything (what?!).

Basically: try to improve user security by leveraging the OS’s security model, and Apple will have you tripping the whole way. But if you’re a malicious actor trying to attack the user, right this way!

And have you been reading on Mojave? Seems like it’s getting even worse, asking for so many permissions, it looks like Vista.

But wait! If you run a simple xattr command, you can tell the whole security system to screw itself and don’t check anything (what?!).

What's better, you can do it from within the app itself.

@commitay: if @Homebrew/maintainers agree, I'll turn this into opt-in ASAP, releasing existing downloads from quarantine. If people still want to use it, we should print a big caveat.

To make this opt-in for everyone we'd need to cut a new tag as well.

Was this page helpful?
0 / 5 - 0 ratings