fluttercommunity / flutter_workmanager

A Flutter plugin which allows you to execute code in the background on Android and iOS.
858 stars 273 forks source link

CocoaPods could not find compatible versions for pod "workmanager": #400

Open neelayak opened 2 years ago

neelayak commented 2 years ago

I am getting this error when trying to run the app in ios -> Fetching podspec forworkmanagerfrom.symlinks/plugins/workmanager/ios`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
[!] CocoaPods could not find compatible versions for pod "workmanager":
  In Podfile:
    workmanager (from `.symlinks/plugins/workmanager/ios`)

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

how and what should i do tried deleating the podfile still same issue

monkeydaichan commented 2 years ago

Having same issue

AnasSafi commented 2 years ago

In ios/Podfile make sure to Uncomment this line and set ios to 11 or higher.

platform :ios, '11.0'

Like head of this file:

https://github.com/fluttercommunity/flutter_workmanager/blob/main/example/ios/Podfile

Then change IOS deployment target to to 11.0 like this:

xcode