[SOLVED]When I try to run my flutter app in MacOs while adding appwrite dependency, it shows error
- 0
- Flutter
- Apple
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 "flutter_web_auth_2":
In Podfile:
flutter_web_auth_2 (from Flutter/ephemeral/.symlinks/plugins/flutter_web_auth_2/macos)
Specs satisfying the flutter_web_auth_2 (from Flutter/ephemeral/.symlinks/plugins/flutter_web_auth_2/macos) dependency were found, but they required a higher minimum deployment target.
You need to increase your deployment target version as it suggests. I'm pretty sure you'll find exactly how if you Google the "required minimum deployment target" error
I tried.. and it shows
warning: variable 'keepMe' was written to, but never read
var keepMe: Any? = nil
... error: compiling for macOS 10.14, but module 'device_info_plus' has a minimum deployment target of macOS 10.15
and If I remove appwrite from pubspec.yaml it runs perfectly!
I also found out appwrite uses flutter_web_auth_2 as a dependency so may be it has to do with something?? idk
Have you change the deployment target in XCode?
no from VsCode in Pod File
platform :osx, '10.15'
Open your project with xcode Then choose edge versions for both
You might be missing some deployment target configuration
I wanted to try that but my Mac os is currently running 14.0 Beta.. which doesn't support for xcode...
any idea on how to make it work?
You'll to download XCode directly
Go to this page https://developer.apple.com/download/applications/ Login to your Apple Developer account
ok will try it and let you know!
it worked thanks @Binyamin
[SOLVED]When I try to run my flutter app in MacOs while adding appwrite dependency, it shows error
Recommended threads
- Error with realtime channels
I'm performing a subscription to realtime channels, and after a few seconds I get an exception with this error: {\"type\":\"error\",\"data\":{\"code\":1008,\"me...
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...