-
Notifications
You must be signed in to change notification settings - Fork 132
-
I apologize for what must be a very basic question, but I've added image_editor to my project and it works great, except when I try to run on macOS desktop I get the following error:
Error: The plugin "image_editor_common" requires a higher minimum macOS deployment version than your application is targeting.
To build, increase your application's deployment target to at least 10.15 as described at
https://docs.flutter.dev/deployment/macos
I've followed the descriptions at the doc.flutter.dev link. Changing the minimum macOS deployment in the Runner target didn't work. Neither did changing the macOS deployment target in the Runner project. I'm new to flutter and XCode, what am I missing?
Additional info: I grep'd the macos directory in my project for "10.14" (which is the default minimum macOS version), and got 30+ hits spread across four files, after I had changed the deployment target as above ^. Do I need to manually change each of those lines?
Added: This is happening in the build, it's coming from CocoaPods when it's analyzing dependencies.
Also: I've tried running flutter clean build macos, still getting the minimum deployment target error.
Beta Was this translation helpful? Give feedback.
All reactions
I found the answer. In addition to the updating the Runner project and target in XCode, I also needed to manually edit macos/Podfile and change the first line to:
platform :osx, '10.15'
Then everything ran normally.
Replies: 1 comment
-
I found the answer. In addition to the updating the Runner project and target in XCode, I also needed to manually edit macos/Podfile and change the first line to:
platform :osx, '10.15'
Then everything ran normally.
Beta Was this translation helpful? Give feedback.