flutter macOS desktop App [dio]

2020-09-14  本文已影响0人  DerekTime

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
文件中添加

<key>com.apple.security.network.client</key>
    <true/>
上一篇 下一篇

猜你喜欢

热点阅读