Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

purchases_flutter minimum deployment target error

I am receiving the following error when I compile my FLutter project after adding package:

purchases_flutter: ^4.0.1 to it ....

[!] CocoaPods could not find compatible versions for pod "purchases_flutter": In Podfile: purchases_flutter (from .symlinks/plugins/purchases_flutter/ios)

Specs satisfying the purchases_flutter (from .symlinks/plugins/purchases_flutter/ios) dependency were found, but they required a higher minimum deployment target.

I have checked the Readme in PubDev for this package which says:

minimum targets iOS 9.0+ is required.

However when I look in my PoDFile I have platform :ios, '10.0'. And in Xcode:

enter image description here

Am I missing something here. I haven't seen any other Deployment targets in Xcode or Podfile.

Would really appreciate it, if someone could point me in the correct direction with this.

Many thanks.

I have also tried creating a new Flutter project to test this from the start again and used the terminal commands as suggested below. I still get the same error... here is a full screen shot of my Android Studio window. Showing the error, my IOS drive and Podfile.

enter image description here

like image 816
Kitcc Avatar asked Sep 08 '25 00:09

Kitcc


1 Answers

Well for me, in 2024 if you are using the latest Xcode, and Experiencing this with flutter application. Just update your podfile inside the iOS folder. Check the line that says platform :ios, '9.0' , uncomment if commented and change from platform :ios, '9.0' TO platform :ios, '14.0' . Use 14.0 as minimum, you can even use a higher version but I recommend 14.0 . Lastly, if you don't want error when shipping your app bundle to apple store Then, Go Runner -> Flutter -> AppFrameworkInfo.plist Also change miminumOSVersion from 9.0 to 14.0

Mark my answer as correct if it works for you. Goodluck!

like image 113
James Idowu Avatar answered Sep 11 '25 08:09

James Idowu