appwrite / website

The Appwrite website, docs and blog šŸ 
https://appwrite.io
200 stars 191 forks source link

šŸ“š Documentation: Flutter MacOS setup #640

Open ronw98 opened 1 year ago

ronw98 commented 1 year ago

šŸ’­ Description

A few things seem to be missing from the macOS documentations setup.

Podfile

Problem

I followed the documentation but the pod update command failed and therefore the app could not built.

Solution

To solve this I went into macos/Podfile and changed the first line to platform :osx, '10.15' as 10.15 is the minium target deployment required for appwrite to work

Xcode configuration

Problem

When trying to connect to the appwrite databases I got the following error:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: SocketException: Connection failed (OS Error: Operation not permitted, errno = 1), address = x.x.x.x, port = 80

Solution

Go to Xcode > Runner target > Signing & Capabilities and check Outgoing Connections (Client) (I guess Incoming Connections (Server) should also be checked). I did this only for the debug configuration but I suppose one should do this for release and profile configurations if applicable.

image


I will do a pull request if it is possible and I find the time to do it but if someone out there could do it it'd be of great help

šŸ‘€ Have you spent some time to check if this issue has been raised before?

šŸ¢ Have you read the Code of Conduct?

stnguyen90 commented 1 year ago

Thanks for raising this issue! šŸ™šŸ¼

I'm not sure we want to add these steps because they're kind of standard iOS related changes. @gewenyu99, what do you think?

tanmoy27112000 commented 1 year ago

@stnguyen90 this does not occur in the latest version of flutter and appwrite. @ronw98 I am assuming that you are using older version of flutter. please check and update to the latest version.