Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

verdi1987

macrumors 6502a
Original poster
Jun 19, 2010
612
328
Running 10.13 PB9 (17A360a). All drives except Time Machine are APFS.

Whenever I open any downloaded file (not just apps), Gatekeeper displays a “Verifying” progress bar. On a large file, this can take several seconds. Even after opening a file once, the quarantine attribute is not cleared, and the verification occurs upon the next opening of the same file.

I have modified Gatekeeper to allow apps from “Anywhere” to no avail. (I did this via Terminal.)

If I manually clear the quarantine attribute, the file opens as expected without the Gatekeeper verification.

Is anyone else experiencing this? This issue has been reported on previous versions of macOS.
 

dolphin842

macrumors 65816
Jul 14, 2004
1,172
29
It's happening for me in the GM build (17A362a) with mov files I shot with my iPhone. Takes 5-10 seconds to open a video even on an SSD. Super frustrating.

Update: Looks like this thread says that it's an issue with Gatekeeper quarantining files it shouldn't.

Update 2: Seems that the files only get quarantined after they're opened for the first time?

Update 3: Yep, if you open a file with any quarantine-aware app (e.g. QuickTime Player, Preview), the app adds a com.apple.quarantine extended attribute to that file, even if the file was created locally and did not previously have a quarantine attribute. You can run "xattr -p com.apple.quarantine" on a file path to see if a file is quarantined or not, and "xattr -d com.apple.quarantine" [emphasis added] to delete the extended attribute. This way you can confirm clearing the quarantine, and see how it gets added after you open the file.
 
Last edited:
  • Like
Reactions: Oberhorst

verdi1987

macrumors 6502a
Original poster
Jun 19, 2010
612
328
I've resorted manually clearing the quarantine attribute on every file.

I'm surprised no one else is reporting this behavior with High Sierra.
 

dolphin842

macrumors 65816
Jul 14, 2004
1,172
29
Ah, I've been editing my reply in-place and didn't see your response. If you haven't seen it, I've added quite a bit more info as I've looked into this more.

If you can file a radar, go ahead and dupe 34614470, which I just filed. I also let Omni support know, as OmniOutliner is one of several third-party apps exhibiting this behavior as well.

In the meantime, clearing the attributes can be made easier with an Automator service for Finder. It's just a simple AppleScript workflow (see attached). Do a Spotlight search for files you've opened in the past several days, select them all, then run the Service via the contextual menu. Here's the code for the Automator action (change the -d to -p if you just want to check if the selected file(s) are quarantined or not):

Code:
on run {input, parameters}
    tell application "Terminal"
        activate
        set filesString to ""
        repeat with file_ in input
            set filesString to filesString & " " & quoted form of (POSIX path of file_)
        end repeat
        do script "xattr -d com.apple.quarantine" & filesString
    end tell
    return input
end run

automator.png
 
Last edited:

Absrnd

macrumors 6502a
Apr 15, 2010
902
1,622
Flatland
I am having these very annoying problems too,
every vid file takes minutes to run.

I really don't even know how to work with scripts, and probably is not safe for me to do,
anybody got a solution I can work with :)

PdneSdd.jpg
 

dolphin842

macrumors 65816
Jul 14, 2004
1,172
29
The problem dissappeared after a clean install. With a dirty upgrade I had all kind of lags and slowness. Even scrolling in final cut pro was laggy

Was this a clean install + Migration Assistant, or did you have to reconstruct your environment from scratch?
[doublepost=1506384450][/doublepost]
I really don't even know how to work with scripts, and probably is not safe for me to do,
anybody got a solution I can work with :)

PdneSdd.jpg

1) Open up Automator
2) Choose "Service" for the document type
3) Set up the document so it matches the screenshot in my previous post.
4) Save... make a descriptive name for the service
5) Right-click on file(s) you want to strip the quarantine from. Go to the Services menu at the bottom, and your newly-created workflow should be in the sub-menu.
6) Select that workflow and a Terminal window should pop up showing that the files don't have that extended attribute anymore.
 
  • Like
Reactions: deorex

kentlim

macrumors newbie
Sep 26, 2017
10
1
Just found this thread. Having the same issue as well. Mine is not a clean install .
 

FCX

macrumors member
Jul 15, 2016
91
211
Was just about to update my 2013 iMac w/Fusion. Clean install it is, then!
 

sys-alchemist

macrumors newbie
Jan 27, 2015
7
14
I am also experiencing this on a mid 2015 MacBook Pro 11,5. I performed an upgrade instead of a clean install. This is currently occurring when opening any video file using VLC or QuickTime.
 

crzyhanko

macrumors newbie
Mar 31, 2003
11
0
I had this problem after doing a normal upgrade. After a clean install the problem went away. I then ran Migration Assistant and the problem returned. After re-installing, I re-ran Migration Assistant but only imported user data and not Apps or other files and am no longer experiencing the problem. Now to re-install my apps I guess.....
 

SoYoung

macrumors 65816
Jul 3, 2015
1,446
832
I dont want to do a clean install but I have the same problem. Do you think they can be fix this on a future update or its the type of issues that will only resolve with a clean install ?
 

crzyhanko

macrumors newbie
Mar 31, 2003
11
0
I had this problem after doing a normal upgrade. After a clean install the problem went away. I then ran Migration Assistant and the problem returned. After re-installing, I re-ran Migration Assistant but only imported user data and not Apps or other files and am no longer experiencing the problem. Now to re-install my apps I guess.....

Decided to risk migrating Apps and the problem still hasn't re-appeared so it seems to maybe be in "other files" or "computer and networks".
 

gsimmons1987

macrumors newbie
Sep 29, 2008
26
7
I'm having this same issue but theres no way I'm doing a clean install anytime soon.

I guess I'll just have to get used to it...
 

SoYoung

macrumors 65816
Jul 3, 2015
1,446
832
With Kodi the videos start instantly like before, but its a nightmare now to launch a video with QuickTime. I can't believe we have to deal with this bug on a public release and I don't see myself live with this bug for years to come if I dont do a clean install.

I'm not a pro with scripts or Terminal commands so if someone have a comprehensive method to solve this issue, feel free to write one.
 

mml78

macrumors newbie
Sep 29, 2013
11
1
I have this problem to after upgrade my rMBP. This was a know issue in the past for some users in El Capitan and recently in Sierra. This last time was only fixed in 10.12.5 (i believe). Hope they can fix it sonner this time.
 

Quu

macrumors 68040
Apr 2, 2007
3,415
6,777
Same issue here after an upgrade. Seems there's several threads about it, hopefully a fix comes quickly.
 

loekf

macrumors 6502a
Mar 23, 2015
821
567
Nijmegen, The Netherlands
Same here, but only on downloaded video files.

Quick fix is:

xattr <file>

if com.apple.quarantine is set do:

xattr -d com.apple.quarantine <file>

After reading this: https://apple.stackexchange.com/questions/104712/what-causes-os-x-to-mark-a-folder-as-quarantined

I wonder if you can prevent this by "hacking" things in

/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist

or modify things in Info.plist for a specific application (e.g. NZBin or uTorrent).

However, this bug/issue has popped up several times in the past. It also occurred in one of the betas of 10.13. Why again then ?
 
  • Like
Reactions: djcristi
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.