Quantcast
Channel: RobotGrrl.com » Mac App StoreRobotGrrl.com
Viewing all articles
Browse latest Browse all 7

Mac App Store Sandboxing for Apps that work with Arduino

$
0
0

Yesterday I worked on making Meters for Arduino, Buttons for Arduino, and Hotkeys for Arduino sandbox-compliant for the Mac App Store! Sandboxing is going to be required starting on June 1st, so it is a good time to implement this. Here is Apple’s Sandbox guide if you want to look at it.

For the ‘for Arduino’ Apps, here is what the Entitlements.plist looks like.

  1. <key>com.apple.security.app-sandbox</key>
  2. <true/>
  3. <key>com.apple.security.device.serial</key>
  4. <true/>
  5. <key>com.apple.security.device.usb</key>
  6. <true/>
  7. <key>com.apple.security.temporary-exception.files.absolute-path.read-write</key>
  8. <array>
  9. <string>/dev/</string>
  10. </array>

This allows the connection and communication to work with the Arduino while in the sandbox.

Also, it’s not specific to just Arduinos! It’s for anything that uses ioctls or termios.

If you want to make your own Mac App that works with Arduino, check out my Matatino framework!

Happy hacking!


Viewing all articles
Browse latest Browse all 7

Trending Articles