A subset of our users are reporting that our application refuses to run (bounces once in the dock, and then closes).
If we drill into the application bundle (
/Application.app/Contents/MacOS) and execute the app from there (
./Application), it runs fine. So the problem is with the bundle, not the binary.
Looking at the permissions for the bundle (
ls -l | grep "Application.app"), we see something like the following:
drwxr-xr-x@ 3 user staff 102 Dec 2 15:10 Application.app
Looking at the extended attribute, we can see the following:
So we remove the quarantine attribute:
xattr -rd com.apple.quarantine "Application.app"
And the app still fails to run. The message reported in the console is:
12/11/13 8:28:37.756 AM com.apple.launchd.peruser.501: ([0x0-0x37037].com.company.application) Exited with code: 1
It seems this message is usually quarantine / Gatekeeper related. What other cause could there be? What have I overlooked?