99
votes

I installed Mac OS Big Sur yesterday and since then I am not able to run some old application. This is the message I get:

"You do not have permission to open the application"

I think this application is from an unknown developer. I tried different methods that were working in Catalina like:

spctl --master-disable

or I tried also to disable SIP and AMFI.

I've also tried

sudo xattr -rd com.apple.quarantine /Applications/my_app.app

If I run the app from the terminal this is the text version of the error I get:

The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10826 "kLSNoLaunchPermissionErr: User doesn't have permission to launch the app (managed networks)" UserInfo={_LSFunction=_LSLaunchWithRunningboard, _LSLine=2508, NSUnderlyingError=0x7fcb24c13ec0 {Error Domain=RBSRequestErrorDomain Code=5 "Launched process exited during launch." UserInfo={NSLocalizedFailureReason=Launched process exited during launch.}}}

Also tried to disable encryption and run:

csrutil authenticated-root disable

This is the error window: enter image description here

15
Same issue here.Jordi Tormo
I think I spent more then a hour on this now, Big Sur has been hella buggy 😪adrwstn
Big Sur-veillanceZ4-tier
please share some of the applications you're trying to run without success...DeejonZ
if you downloaded by browser your big sur sent for quarantine, for disable run: sudo xattr -dr com.apple.quarantine /path/to/app and then open your app normally, I hope this solve your problemDamon Abdiel

15 Answers

60
votes

Open Terminal or iTerm and type sudo chmod -R 755, then drag the .app into the window, which will bring the full path into Terminal or iTerm. This worked for me, moving the -R option directly after chmod.

It will look like this:

sudo chmod -R 755 Path\ to\ app\ file.app

Press return.

51
votes

I had this problem with the error "Termination Reason: Namespace CODESIGNING, Code 0x1" and

I managed to open application after I signed it again on that machine, with the command:

codesign --force --deep --sign - /Applications/AppName.app

No other solution worked for me.

43
votes

The problem in my case it was related to a Big Sur problem where UPX compressed binaries are not recognised properly so not executed with a permission error. There is some more info here: https://github.com/upx/upx/issues/424

So the solution is to unpack the binary with UPX and run it normally.

Install upx with brew:

brew install upx

now run this command:

sudo upx -d /Applications/my_app.app/Contents/MacOS/my_app

(please note you have to specify the full binary path)

you should put the path of your binary instead of "/Applications/my_app.app/Contents/MacOS/my_app"

Then run the application normally.

35
votes

It seems to be a permissions issue on one of the files deep in the .app that you moved to the applications directory.

Open Terminal or iTerm and type "chmod -R 755 " and drag the .app into the window, which will bring the full path into Terminal or iTerm.

It will look like this:

chmod -R 755 Path\ to\ app\ file.app

Press return

Then, you can open the app file normally, but it will fail because gatekeeper won't be able to verify the file. From there, go into your "Security and Privacy" in "System Preferences" and then click to allow the app to open.

9
votes

This answer will only apply to a specific set of apps

I had this issue with a universal binary (Terminal) that I duplicated and explicitly set in the info "Open using Rosetta" to run x86 tools like Homebrew. After updating to 11.0.1 from 11.0.0, the x86 version of the terminal stopped working with the above error.

I simply had to delete the duplicate, created another duplicate of the terminal and enabled Rosetta again.

5
votes

first figure out that your app signature is valid:

from apple official website:

All apps in the App Store are signed by Apple to ensure they have not been misused or tampered with. Apple signs any app that comes with Apple devices.

to check this out you can type following in your terminal (the path of Folx.app is just for example and you should replace it with your desired app):

pkgutil --check-signature /Applications/Folx.app

if you get an "invalid signature" responce, something like this: enter image description here

then your app maybe was installed in some hacky way! and now your easiest approach is to uninstall the app and re-install it again

ohterwise you will have a plenty of hard time to enjoy (😎) with that app and xCode and signature stuffs ...

3
votes

You have to run SUDO xattr -d com.apple.quarantine <app>. It's important that you don't forget sudo or it won't work.

3
votes

This is the only solution that worked in my case.

Download macOS-GateKeeper-Helper from https://github.com/wynioux/macOS-GateKeeper-Helper

  • Open GateKeeper_Helper.command by double-clicking on it (if it says untrusted developer, go ahead and run it from Settings - Security & Privacy - General - Open Anyway)

  • Select Option 4 (Remove app from GateKeeper quarantine)

  • Drag and Drop the app file from Applications folder hit return key and enter your password

  • You will see a message like “App removed from quarantine”. That’s it. Try to open the app as usual.

0
votes

We just removed In-App purchases from capabilities and it worked(The app is distributed from the company site https://nektony.com/mac-app-cleaner).

Actually, it removed "StoreKit.framework" from the project file.

0
votes

I encountered this issue when sending to a colleague for resting a Mac app that I developed. He tried some of the suggestions on this forum, but they didn't seem to work (and we're both on Intel, so the Rosetta tips didn't apply).

What ultimately worked for me was creating a blank disk image, and then adding the .app file to the image and then sending him the disk image. It seems like the problem comes up when the .app file is compressed, and adding the file to a disk image first seems to help prevent the issue.

0
votes

If you are uploading an Xcode app to github releases, make sure to compress it first on your computer, don't let github compress it

0
votes

For my team, this turned out to be a problem with git adding CRLF to the Entitlements.plist file. Once I fixed the .gitattributes file to only use LF with plist files, I built a new app and had it codesigned and it worked--no aborts. I also had to make sure Jenkins wiped the workspace since it didn't seem to fix the file at first.

0
votes

I've faced similar kind of permission issues and nothing helped at the end reinstalling the application in which I was facing the issues helped me, Still don't know why this problem had occurred.

-1
votes

sudo chmod -R 777 /app/to/path

This is the only thing that worked for me after trying everything in this thread.

-1
votes

None of these solutions worked for me. Updating to Big Sur 11.4 fixed the issue in my case.