flutter macOS desktop App [dio] SocketException: Connection failed

Without the

com.apple.security.network.client entitlement,

for example, network requests will fail with a message such as:

flutter: SocketException: Connection failed (OS Error: Operation not permitted, errno = 1), address = example.com, port = 443

需要在macos/Runner/Release(DebugProfile).entitlements
文件中添加

com.apple.security.network.client
    

你可能感兴趣的:(flutter macOS desktop App [dio] SocketException: Connection failed)