armadsen / ORSSerialPort

Serial port library for Objective-C and Swift macOS apps
MIT License
751 stars 183 forks source link

Operation not permitted #156

Closed tangzhifengjluzh closed 4 years ago

tangzhifengjluzh commented 4 years ago

Uploading an application requires opening the sandbox, but when opening sandbox permissions, an error is reported

Serial port usbserial-14630 encountered an error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={NSFilePath=/dev/cu.usbserial-14630, NSLocalizedDescription=Operation not permitted}

scchn commented 4 years ago

https://github.com/armadsen/ORSSerialPort/wiki/Installing-ORSSerialPort#use-in-sandboxed-applications

Try add "com.apple.security.device.serial" to the entitlements file.

armadsen commented 4 years ago

As sccxx's answer says, you need to make sure you've included the com.apple.security.device.serial to your sandbox entitlements file. If this doesn't fix the issue, let me know, but I'm going to close this for now.

tangzhifengjluzh commented 4 years ago

Thank you very much for solving this problem perfectly