将我们当前在 Linux
操作系统上开发的项目迁移到 MacOs
后。我使用了 AudioPlayer 库,它也适用于 Android,现在当我尝试从网络播放音频时,我必须将 com.apple.security.network.client 添加到 .entitlements
例如 Debug
和 Release
By default, Flutter macOS apps don't allow outgoing connections, so playing audio files/streams from the internet won't work. To fix this, add the following to the .entitlements files for your app:
com.apple.security.network.client
我的问题是我在 ios/Runner 中找不到这个文件,并且在阅读了一些内容之后 document在 Flutter
网站上我不明白我该怎么做
最佳答案
我相信您应该打开 macOS 文件中的 Runner.xcodeproj
文件。您可以在此处查看您要启用的相应权限:
xcode screenshot
关于ios - Flutter 将 com.apple.security.network.client 添加到 *.entitlements,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68766403/