18

I tried to run an app on my mac but it quickly closes, I've checked the Quarantine flag but that was not the problem, I checked Console and here's the error information:

9/24/12 1:44:19.343 AM com.apple.launchd.peruser.501[150]: ([0x0-0x330330].com.krill.CodeRunner[5405]) Job failed to exec(3) for weird reason: 13

How can I fix this?

Thanks in advance

Shahin
  • 491
  • 1
  • 3
  • 8

2 Answers2

21

Thanks to lanzz

I found out that the problem is permissions.

I used chmod +x to set the executable app under MacOS folder of the .app to make it executable and the problem is fixed.

Shahin
  • 491
  • 1
  • 3
  • 8
  • 1
    This worked beautifully. I also ran into this issue with Minecraft and Slender: The Eight Pages. using `chmod u+x /Contents/MacOS/` fixed the problem in both cases. – spex Feb 21 '13 at 21:04
1

If chmod doesn't work for you:

I was getting the same error with an .app file extracted from a zip but the chmod solution didn't help. I eventually found this page which suggested re-extracting the file from the original zip using the Archive Utility. This worked for my case.

(I had extracted it using 7-Zip on a PC and picked it up on the Mac via DropBox which presumably mangled the permissions in some manner.)

Buzzwig
  • 111
  • 2