我正在尝试构建一个针对 macOS 的 Flutter 应用程序。添加一些依赖项(例如 just_audio)后,我会收到有关MACOSX_DEPLOYMENT_TARGET在各个位置设置为各种值(需要更改为其他值)的警告。
因此,我打开 Xcode 并按照说明仔细设置值。之后,应用程序成功编译,没有警告,并按预期执行一次、两次,甚至三次,但不可避免地会返回警告。当我返回 Xcode 时,我发现所有值都恢复到之前的状态。我尝试了不同的目标版本,从 10.15 到 13.1(当前安装),但警告最终总是会出现。
\n我是否错过了重要的一步?我对软件开发并不陌生,但对 macOS 和 Xcode 完全陌生。
\n以下是不断出现的错误的示例:
\nLaunching lib/main.dart on macOS in debug mode...\n--- xcodebuild: WARNING: Using the first of multiple matching destinations:\n{ platform:macOS, arch:arm64, id:00006000-000210D03EB8401E }\n{ platform:macOS, arch:x86_64, id:00006000-000210D03EB8401E }\n/Users/foo/projects/just_audio_background_test/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.6, but the range of supported deployment target versions is 10.13 to 13.1.99. (in target 'FMDB' from project 'Pods')\n/Users/foo/projects/just_audio_background_test/macos/Pods/Pods.xcodeproj: warning: The …Run Code Online (Sandbox Code Playgroud)