Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operation not permitted on mac #202

Closed
HelloWk opened this issue May 15, 2018 · 2 comments
Closed

Operation not permitted on mac #202

HelloWk opened this issue May 15, 2018 · 2 comments
Assignees

Comments

@HelloWk
Copy link

HelloWk commented May 15, 2018

hi,

i want to use cocoamqtt in mac app,but this have a question:

2018-05-16 01:43:24.751380+0900 LiveController[12583:2473567] dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
2018-05-16 01:43:25.442652+0900 LiveController[12583:2473507] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x6000000e6a80> (Domain: com.apple.PowerManagement, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access, detaching from cfprefsd
2018-05-16 01:43:25.754552+0900 LiveController[12583:2473567] dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
2018-05-16 01:43:26.755668+0900 LiveController[12583:2473567] dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
2018-05-16 01:43:27.755865+0900 LiveController[12583:2473567] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:5 Err:-1 Errno:1 Operation not permitted

how to fix it ?

thanks a lot

@HJianBo
Copy link
Member

HJianBo commented May 16, 2018

Hi @HelloWk Could you paste integration steps in Mac App?

I had test it with CocoaPods, It works!

@HJianBo HJianBo self-assigned this May 16, 2018
@HelloWk
Copy link
Author

HelloWk commented May 16, 2018

in XCode->Targets->Capabilities check [outgoing connections] on,or off app sandbox, now it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants