Back

[SOLVED]When I try to run my flutter app in MacOs while adding appwrite dependency, it shows error

  • 0
  • Flutter
  • Apple
Dipen
25 Jun, 2023, 18:29

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.

TL;DR
The user was experiencing an error when trying to run their Flutter app on macOS after adding the appwrite dependency. It turned out that the error was caused by a compatibility issue with the deployment target version. The solution was to increase the deployment target version in XCode. The user also mentioned that the appwrite dependency uses flutter_web_auth_2, which could potentially be related to the issue. Removing the appwrite dependency allowed the app to run without errors.
Drake
25 Jun, 2023, 18:31

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

Dipen
25 Jun, 2023, 18:32

I tried.. and it shows

TypeScript
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
Dipen
25 Jun, 2023, 18:33

and If I remove appwrite from pubspec.yaml it runs perfectly!

Dipen
25 Jun, 2023, 18:34

I also found out appwrite uses flutter_web_auth_2 as a dependency so may be it has to do with something?? idk

Binyamin
25 Jun, 2023, 18:40

Have you change the deployment target in XCode?

Dipen
25 Jun, 2023, 18:41

no from VsCode in Pod File

Dipen
25 Jun, 2023, 18:41

platform :osx, '10.15'

Binyamin
25 Jun, 2023, 18:44

Open your project with xcode Then choose edge versions for both

Drake
25 Jun, 2023, 23:56

You might be missing some deployment target configuration

Dipen
26 Jun, 2023, 13:59

I wanted to try that but my Mac os is currently running 14.0 Beta.. which doesn't support for xcode...

Dipen
26 Jun, 2023, 13:59

any idea on how to make it work?

Binyamin
26 Jun, 2023, 14:01

You'll to download XCode directly

Binyamin
26 Jun, 2023, 14:03

Go to this page https://developer.apple.com/download/applications/ Login to your Apple Developer account

Dipen
26 Jun, 2023, 14:09

ok will try it and let you know!

Dipen
26 Jun, 2023, 18:12

it worked thanks @Binyamin

Dipen
26 Jun, 2023, 18:13

[SOLVED]When I try to run my flutter app in MacOs while adding appwrite dependency, it shows error

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more