macosui / macos_ui

Flutter widgets and themes implementing the current macOS design language.
https://macosui.github.io/macos_ui/#/
MIT License
1.88k stars 183 forks source link

Compiling for macOS 10.14, but module 'macos_ui' has a minimum deployment target of macOS 10.14.6 #518

Closed samikhan69420 closed 1 month ago

samikhan69420 commented 1 month ago

Description

I am following all the steps provided in the documentation to change the platform :osx, '10.14.6' and adding the configureMacosWindowUtils, but i still get the following error compiling for macOS 10.14, but module 'macos_ui' has a minimum deployment target of macOS 10.14.6: /Users/sami/Documents

Steps To Reproduce

  1. Change the platform :osx to 10.14.6 (as the documentation suggests)
  2. add the configureMacosWindowUtils() function and call it in your main() function
Code sample ```dart import 'package:flutter/material.dart'; import 'package:macos_ui/macos_ui.dart'; Future _configureMacosWindowUtils() async { const config = MacosWindowUtilsConfig( toolbarStyle: NSWindowToolbarStyle.unified, ); await config.apply(); } void main() async { await _configureMacosWindowUtils(); runApp(const MyApp()); } ```

Expected behavior

It should run without throwing an error

Logs

Logs ``` [ +9 ms] executing: sw_vers -productName [ +22 ms] Exit code 0 from: sw_vers -productName [ ] macOS [ ] executing: sw_vers -productVersion [ +13 ms] Exit code 0 from: sw_vers -productVersion [ ] 12.7.6 [ ] executing: sw_vers -buildVersion [ +12 ms] Exit code 0 from: sw_vers -buildVersion [ ] 21H1320 [ ] executing: uname -m [ +4 ms] Exit code 0 from: uname -m [ ] x86_64 [ +4 ms] executing: sysctl hw.optional.arm64 [ +4 ms] Exit code 1 from: sysctl hw.optional.arm64 [ ] sysctl: unknown oid 'hw.optional.arm64' [ +155 ms] executing: sysctl hw.optional.arm64 [ +6 ms] Exit code 1 from: sysctl hw.optional.arm64 [ ] sysctl: unknown oid 'hw.optional.arm64' [ ] executing: xcrun xcodebuild -version [ +400 ms] Exit code 0 from: xcrun xcodebuild -version [ ] Xcode 14.2 Build version 14C18 [ +3 ms] executing: xcrun xcdevice list --timeout 5 [ +7 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +2 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update. [ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. les/macos_ui.swiftmodule/x86_64-apple-macos.swiftmodule [ ] import macos_ui [ ] ^ [ +41 ms] SwiftCompile normal x86_64 Compiling\ AppDelegate.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift (in target 'Runner' from project 'Runner') [ ] cd /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos [ ] builtin-swiftTaskExecution -- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift -primary-file /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift -emit-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/AppDelegate.d -emit-reference-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/AppDelegate.swiftdeps -serialize-diagnostics-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/AppDelegate.dia -target x86_64-apple-macos10.14 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils -no-color-diagnostics -enable-testing -g -module-cache-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -enable-bare-slash-regex -empty-abi-descriptor -Xcc -working-directory -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-generated-files.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-own-target-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-project-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/include -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors/appki t_ui_element_colors.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui/macos_ui.framework/He aders -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils/macos_windo w_utils.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources-normal/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources -Xcc -DDEBUG\=1 -Xcc -DCOCOAPODS\=1 -module-name macos_testing_haptic_project -frontend-parseable-output -disable-clang-spi -target-sdk-version 13.1 -o /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/AppDelegate.o -index-unit-output-path /Runner.build/Debug/Runner.build/Objects-normal/x86_64/AppDelegate.o [ +3 ms] CompileSwift normal x86_64 /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift (in target 'Runner' from project 'Runner') [ ] cd /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos [ ] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -c /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift -primary-file /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift -emit-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/AppDelegate.d -emit-reference-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/AppDelegate.swiftdeps -serialize-diagnostics-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/AppDelegate.dia -target x86_64-apple-macos10.14 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils -no-color-diagnostics -enable-testing -g -module-cache-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -enable-bare-slash-regex -empty-abi-descriptor -Xcc -working-directory -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-generated-files.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-own-target-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-project-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/include -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors/appki t_ui_element_colors.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui/macos_ui.framework/He aders -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils/macos_windo w_utils.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources-normal/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources -Xcc -DDEBUG\=1 -Xcc -DCOCOAPODS\=1 -module-name macos_testing_haptic_project -frontend-parseable-output -disable-clang-spi -target-sdk-version 13.1 -o /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/AppDelegate.o -index-unit-output-path /Runner.build/Debug/Runner.build/Objects-normal/x86_64/AppDelegate.o [ +3 ms] /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift:9:8: error: compiling for macOS 10.14, but module 'macos_ui' has a minimum deployment target of macOS 10.14.6: /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui/macos_ui.framework/Modu les/macos_ui.swiftmodule/x86_64-apple-macos.swiftmodule [ ] import macos_ui [ ] ^ [ +17 ms] SwiftCompile normal x86_64 Compiling\ GeneratedPluginRegistrant.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift (in target 'Runner' from project 'Runner') [ ] cd /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos [ ] builtin-swiftTaskExecution -- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift -primary-file /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift -emit-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/GeneratedPluginRegistrant.d -emit-reference-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/GeneratedPluginRegistrant.swiftdeps -serialize-diagnostics-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/GeneratedPluginRegistrant.dia -target x86_64-apple-macos10.14 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils -no-color-diagnostics -enable-testing -g -module-cache-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -enable-bare-slash-regex -empty-abi-descriptor -Xcc -working-directory -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-generated-files.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-own-target-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-project-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/include -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors/appki t_ui_element_colors.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui/macos_ui.framework/He aders -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils/macos_windo w_utils.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources-normal/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources -Xcc -DDEBUG\=1 -Xcc -DCOCOAPODS\=1 -module-name macos_testing_haptic_project -frontend-parseable-output -disable-clang-spi -target-sdk-version 13.1 -o /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/GeneratedPluginRegistrant.o -index-unit-output-path /Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.o [ +2 ms] CompileSwift normal x86_64 /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift (in target 'Runner' from project 'Runner') [ ] cd /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos [ ] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -c /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift -primary-file /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift -emit-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/GeneratedPluginRegistrant.d -emit-reference-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/GeneratedPluginRegistrant.swiftdeps -serialize-diagnostics-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/GeneratedPluginRegistrant.dia -target x86_64-apple-macos10.14 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils -no-color-diagnostics -enable-testing -g -module-cache-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -enable-bare-slash-regex -empty-abi-descriptor -Xcc -working-directory -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-generated-files.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-own-target-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-project-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/include -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors/appki t_ui_element_colors.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui/macos_ui.framework/He aders -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils/macos_windo w_utils.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources-normal/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources -Xcc -DDEBUG\=1 -Xcc -DCOCOAPODS\=1 -module-name macos_testing_haptic_project -frontend-parseable-output -disable-clang-spi -target-sdk-version 13.1 -o /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/GeneratedPluginRegistrant.o -index-unit-output-path /Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.o [ +3 ms] /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift:9:8: error: compiling for macOS 10.14, but module 'macos_ui' has a minimum deployment target of macOS 10.14.6: /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui/macos_ui.framework/Modu les/macos_ui.swiftmodule/x86_64-apple-macos.swiftmodule [ ] import macos_ui [ ] ^ [ ] SwiftCompile normal x86_64 Compiling\ MainFlutterWindow.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift (in target 'Runner' from project 'Runner') [ ] cd /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos [ ] builtin-swiftTaskExecution -- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift -emit-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/MainFlutterWindow.d -emit-reference-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/MainFlutterWindow.swiftdeps -serialize-diagnostics-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/MainFlutterWindow.dia -target x86_64-apple-macos10.14 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils -no-color-diagnostics -enable-testing -g -module-cache-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -enable-bare-slash-regex -empty-abi-descriptor -Xcc -working-directory -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-generated-files.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-own-target-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-project-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/include -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors/appki t_ui_element_colors.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui/macos_ui.framework/He aders -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils/macos_windo w_utils.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources-normal/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources -Xcc -DDEBUG\=1 -Xcc -DCOCOAPODS\=1 -module-name macos_testing_haptic_project -frontend-parseable-output -disable-clang-spi -target-sdk-version 13.1 -o /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/MainFlutterWindow.o -index-unit-output-path /Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.o [ +3 ms] CompileSwift normal x86_64 /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift (in target 'Runner' from project 'Runner') [ ] cd /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos [ ] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -c -primary-file /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift -emit-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/MainFlutterWindow.d -emit-reference-dependencies-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/MainFlutterWindow.swiftdeps -serialize-diagnostics-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/MainFlutterWindow.dia -target x86_64-apple-macos10.14 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui -F /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils -no-color-diagnostics -enable-testing -g -module-cache-path /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -enable-bare-slash-regex -empty-abi-descriptor -Xcc -working-directory -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-generated-files.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-own-target-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/macos_testing_haptic_project-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/macos_testing_haptic_project-project-headers.hmap -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/include -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/appkit_ui_element_colors/appki t_ui_element_colors.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui/macos_ui.framework/He aders -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_window_utils/macos_windo w_utils.framework/Headers -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources-normal/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources/x86_64 -Xcc -I/Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runn er.build/DerivedSources -Xcc -DDEBUG\=1 -Xcc -DCOCOAPODS\=1 -module-name macos_testing_haptic_project -frontend-parseable-output -disable-clang-spi -target-sdk-version 13.1 -o /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner .build/Objects-normal/x86_64/MainFlutterWindow.o -index-unit-output-path /Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.o [ +2 ms] /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift:9:8: error: compiling for macOS 10.14, but module 'macos_ui' has a minimum deployment target of macOS 10.14.6: /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/build/macos/Build/Products/Debug/macos_ui/macos_ui.framework/Modu les/macos_ui.swiftmodule/x86_64-apple-macos.swiftmodule [ ] import macos_ui [ ] ^ [ ] ** BUILD FAILED ** [ +1 ms] The following build commands failed: [ ] SwiftEmitModule normal x86_64 Emitting\ module\ for\ macos_testing_haptic_project (in target 'Runner' from project 'Runner') [ ] CompileSwift normal x86_64 /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift (in target 'Runner' from project 'Runner') [ ] SwiftCompile normal x86_64 Compiling\ AppDelegate.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/AppDelegate.swift (in target 'Runner' from project 'Runner') [ ] CompileSwift normal x86_64 /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift (in target 'Runner' from project 'Runner') [ ] SwiftCompile normal x86_64 Compiling\ GeneratedPluginRegistrant.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Flutter/GeneratedPluginRegistrant.swift (in target 'Runner' from project 'Runner') [ ] CompileSwift normal x86_64 /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift (in target 'Runner' from project 'Runner') [ ] SwiftCompile normal x86_64 Compiling\ MainFlutterWindow.swift /Users/sami/Documents/flutter_projects/macos_testing_haptic_project/macos/Runner/MainFlutterWindow.swift (in target 'Runner' from project 'Runner') [ ] (7 failures) [ +21 ms] Building macOS application... (completed in 6.9s) [ +3 ms] Error: Build process failed [ +2 ms] "flutter run" took 10,085ms. [ +39 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:874:9) #2 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1408:27) #3 AppContext.run. (package:flutter_tools/src/base/context.dart:153:19) #4 CommandRunner.runCommand (package:args/command_runner.dart:212:13) #5 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:420:9) #6 AppContext.run. (package:flutter_tools/src/base/context.dart:153:19) #7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5) #8 run.. (package:flutter_tools/runner.dart:130:9) #9 AppContext.run. (package:flutter_tools/src/base/context.dart:153:19) #10 main (package:flutter_tools/executable.dart:93:3) [ +200 ms] ensureAnalyticsSent: 197ms [ ] Running 2 shutdown hooks [ +3 ms] Shutdown hooks complete [ +266 ms] exiting with code 1 ``` ``` Analyzing macos_testing_haptic_project... No issues found! (ran in 2.4s) ``` ``` [✓] Flutter (Channel stable, 3.24.0, on macOS 12.7.6 21H1320 darwin-x64, locale en-GB) • Flutter version 3.24.0 on channel stable at /Users/sami/Documents/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 80c2e84975 (9 weeks ago), 2024-07-30 23:06:49 +0700 • Engine revision b8800d88be • Dart version 3.5.0 • DevTools version 2.37.2 [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at /Users/sami/Library/Android/sdk • Platform android-35, build-tools 35.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314) • All Android licenses accepted. [!] Xcode - develop for iOS and macOS (Xcode 14.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14C18 ! Flutter recommends a minimum Xcode version of 15. Download the latest version or update via the Mac App Store. • CocoaPods version 1.15.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2024.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314) [✓] VS Code (version 1.93.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.98.0 [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 12.7.6 21H1320 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 129.0.6668.70 [✓] Network resources • All expected network resources are available. ! Doctor found issues in 1 category. ```
GroovinChip commented 1 month ago

Have you tried opening Xcode and updating the version there?

romanr commented 1 month ago

It may appear that 10 is not possible to select…

Xcode-Runner — Runner xcodeproj-1003 1141@2x

Select "Other…"

Xcode-Runner — Runner xcodeproj-1003 1137@2x

Version 10.14 is Mojave from 2019,

having 0.74% market share.

I think 11 Big Sur should be fine.

haseebzafar9832 commented 1 month ago

minimum deployments should be less then or equal to 14.6