1. id app
osascript -e 'id of app "NOME_DO_APP"'
2. micro permission
sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceMicrophone','id app’ ,0,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1541440109);"
3. camera permission
sudo sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceCamera','id app',0,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1541440109);"
![](https://s2.save4k.ru/pic/WY1qQPdckOg/maxresdefault.jpg)