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:
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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With