問題
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を追加する。