Objective-C: NSCommand “airport -s” returning empty

做~自己de王妃 提交于 2019-12-02 05:19:42

Ok. By deeply investigating issues here, I've found this in my Console logs:

PMsandboxd: ([57108]) <MyApp>(57108) deny mach-lookup com.apple.airport
PMsandboxd: ([57108]) <MyApp>(57108) deny system-socket
PMsandboxd: ([57120]) sh(57120) deny file-read-data /dev/ttys003
PMairportd: Error: Scan failed (1)
PMsandboxd: ([57120]) airport(57120) deny system-socket

Well... looks like it is a permission issue. I'm still investigating here.

EDITED #1: Ok. If your app is sandboxed for Apple Store, sandbox deny NSTask from using airport scan!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!