network相关

之前是遇到,给debugserver重签名之前,要删除原entitlement中的:

  • com.apple.security.network.servercom.apple.security.network.client
    • 目的:防止后续lldb调试报错Failed to get connection from a remote gdb process

官网解释

  • com.apple.security.network.server
    • A Boolean value indicating whether your app may listen for incoming network connections.
      • Use this key to allow other computers to initiate network connections to your sandboxed app.
        • For TCP sockets, the com.apple.security.network.server and com.apple.security.network.client entitlements restrict only the initiation of a network connection, not the flow of data. Outgoing and incoming connections can both send and receive data.
        • For UDP sockets, the network entitlements restrict both initiation and data flow. For example, an app with only the server entitlement enabled can receive, but not send, data. Apps using UDP usually require both entitlements.
      • To add this entitlement to your app, enable the App Sandbox capability in Xcode, and under Network, select Incoming Connections (Server).
  • com.apple.security.network.client
    • A Boolean value indicating whether your app may open outgoing network connections.
      • Use this key to allow your sandboxed app to connect to a server process running on another machine, or on the same machine.
        • For TCP sockets, the com.apple.security.network.client and com.apple.security.network.server entitlements restrict only the initiation of a network connection, not the flow of data. Outgoing and incoming connections can both send and receive data.
        • For UDP sockets, the network entitlements restrict both initiation and data flow. For example, an app with only the client entitlement enabled can send, but not receive, data. Apps using UDP usually require both entitlements.
      • To add this entitlement to your app, enable the App Sandbox capability in Xcode, and under Network, select Outgoing Connections (Client).

results matching ""

    No results matching ""