Author Topic: Mountain Lion "Digispark Ready - Arduino 1.03" is damaged and can't be opened.  (Read 42064 times)

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
And it works for both of you if you replace the \"stub\" file? Or caskey does it only work for you with the command from will?

So I made this latest build by grabbing a completely new copy of the Arduino.app and copying in the necessary Digispark files, the \"stub\" file was not touched in any way. That\'s what stumps me - works perfect on 10.7 and even on 10.8 for others...

Since it is working with the workaround I might not get to this right away but I\'ll have to load 10.8.2 in the next few days and try to figure out a permanent fix

Kenny

  • Newbie
  • *
  • Posts: 1
Copying JavaApplicationStub from a good copy of Arduino to the Digispark version does not work for me.

However, What does work (for me, at least) is this:

- No need to make modifications to the Digispark branded version of Arduino.

- In System Preferences/Security & Privacy/General Tab, click the lock to make changes, enter your password.

- Change the \"Allow applications downloaded from:\" to \"Anywhere\".

- Close System Preferences (probably not necessary, but I always do this)

- Run the Digispark branded version of Arduino (no need to right click)

- You can now go back into System Preferences and change the Security Settings back the way you had them (probably not a good idea to leave it set to \"Anywhere\").


mrsayao

  • Newbie
  • *
  • Posts: 1
Mac OS 10.7.5 here trying to use 1.0.3. I copied the working java stub from the original arduino.app and the app runs (it won\'t without doing that first). However I get an error when trying to verify or upload:

Cannot run program \"/Digispark/Arduno.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++\" error=13, Permission Denied.

Yes gatekeeper setting is set to \"Anywhere\"

I\'d like to play with my digisparks, any help would be awesome!

pololevu

  • Newbie
  • *
  • Posts: 4
Re: Mountain Lion \
« Reply #18 on: February 04, 2013, 03:42:25 pm »
Looks like this might be an issue with permissions similar to the linux one. I need to look a bit further but there are definitely execute bits missing on the avr-g++ etc binaries.

pololevu

  • Newbie
  • *
  • Posts: 4
Re: Mountain Lion \
« Reply #19 on: February 04, 2013, 03:55:17 pm »
Ok, so on closer look, it seems the file permissions bits have been lost/mangled by the packing method (ie the way the zip was created). Using:
unzip -Zl arduino-1.03-osx-digispark-2013-01-08.zip

pololevu

  • Newbie
  • *
  • Posts: 4
Re: Mountain Lion \
« Reply #20 on: February 04, 2013, 04:21:41 pm »
Ooops... try again :-)


using:


    unzip -Zl arduino-1.03-osx-digispark-2013-01-08.zip


shows lines like:


-rw-a--     6.3 fat    51744 bx    11706 defN 10-Dec-12 04:10 Mac/Digispark Ready - Arduino 1.03/Arduino.app/Contents/MacOS/JavaApplicationStub


Which looks to me like it was created from a FAT filesystem which has very limited permissions - in particular doesn't have/need execute permissions. Compare this to the same file in the teensy3 zip file:


-rwxr-xr-x  3.0 unx    51776 bx    11797 defX 12-Jan-13 22:34 Arduino.app/Contents/MacOS/JavaApplicationStub


here the filesystem is 'unx' and this has correct file permissions bits (ie -rwxr-xr-x).


Since the permissions are missing from the Digispark zip file I suspect that means either it was created from a FAT filesystem or that zip stripped the permission - I think the latter is unlikely.


The real fix for this is to repackage it with the correct permissions, however in the interim, given that we don't know for sure which files should be executable but that an execute bit being set where it isn't needed shouldn't break anything, one really, really ugly fix would be to open a terminal, cd into the digispark's Arduino.app directory, then run something like:


    find . -type f -exec sudo chmod +x {} \;


which will recursively set the execute bit on every file - but take care.....

AugustoEst

  • Newbie
  • *
  • Posts: 2
Re: Mountain Lion \\
« Reply #21 on: February 04, 2013, 05:32:39 pm »
Mac OS 10.7.5 here trying to use 1.0.3. I copied the working java stub from the original arduino.app and the app runs (it won\'t without doing that first). However I get an error when trying to verify or upload:

Cannot run program \"/Digispark/Arduno.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++\" error=13, Permission Denied.

Yes gatekeeper setting is set to \"Anywhere\"

I\'d like to play with my digisparks, any help would be awesome!


I fixed this quickly in 10.6.8 by going to /Applications/ and choosing "Show Package Contents" (right click on Arduino). I then right clicked on the Contents folder, and changed the permissions to Read and Write (Apply to enclosed items...)

engineertype

  • Newbie
  • *
  • Posts: 3
Re: Mountain Lion \
« Reply #22 on: February 05, 2013, 12:20:00 pm »
What an exercise in frustration!  Here's what I did to make it work:
1. Download Digispark Arduino and move it to the Applications folder
2. Copy JavaApplicationStub from non-Digispark Arduino folder into Digispark folder (see [size=78%]http://digistump.com/board/index.php/topic,119.msg671.html#msg671[/size])
3. Change folder permissions (see http://digistump.com/board/index.php/topic,119.msg1555.html#msg1555)
4. Using Terminal, launch Digispark Arduino from [size=78%]Contents/Resources/Java within the app [/size][size=78%](see http://digistump.com/board/index.php/topic,119.msg674.html#msg674)[/size]
5. Set both board and programmer to Digispark (see http://digistump.com/board/index.php/topic,259.msg1401.html#msg1401)


Hope this saves others some time.

pololevu

  • Newbie
  • *
  • Posts: 4
Re: Mountain Lion \
« Reply #23 on: February 05, 2013, 01:28:47 pm »
I just re-checked my original 'fix' with a fresh install, and for me on 10.8.2 (not that I think that is an issue), there is no need to replace any files, just fix the permissions then it works as expected, just click the arduino icon and away you go!