Failed to open port (OpenFramework x Arduino)

Hi,

I am trying to connect the openframework app with arduino.

I have set the port on Arduino (9600). And in OpenFramework I want to connect to the same serial port (finding the correct usb device)

However, I see the below errors: [notice ] ofSerial: opening /dev/cu.usbmodem141201 @ 9600 bps [ error ] ofSerial: unable to open /dev/cu.usbmodem141201

So I have enabled in the entitlements file com.apple.security.device.serial App Sandbox com.apple.security.device.usb

But even after that I still fail to open the port

I am running on Mac 12.6.3 and Xcode 14.2.

Does this work if you disable the App Sandbox?

That’s just for the sake of testing right now. If you’re answer is “Yes” then we can talk about whether that’s the right option or not.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I've run into a similar problem. I am developing an app which will flash the memory of a device which I designed through the usbserial driver. I can see the device as a usbserial device in the system report. I can retrieve the device name and display it as a choice (the only choice in this case) of an available port. When I try to open the port, the app fails. When I disable SandBox, the port opens properly and the flash operation continues as expected. OS 13.4 XCode 14.3.1

Failed to open port (OpenFramework x Arduino)
 
 
Q