LoginSignup
3
2

More than 5 years have passed since last update.

swift TCP/IP接続でパーミンションエラー

Posted at

問題

swiftのstreamを使ったTCP/IPクライアントでコネクションをオープンしようとすると、Operation not permittedとなり接続できない。

2017-12-06 22:49:55.115031+0900 Game3D[1038:66476] [] nw_socket_connect connectx failed (fd 6, 192.168.1.23:8081 stream, pid: 1038): [1] Operation not permitted

解決策

xxx.entitlementsにcom.apple.security.network.clientを追加する。

sandbox.png

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2