Swift SDK Crashes For New App
Hi all, I'm trying out Supabase for a MacOS app. Using version 2.5.1 (https://github.com/supabase/supabase-swift) and attempting to connect top my db, the app crashes immediately here:
Here is my init :
GitHub
GitHub - supabase/supabase-swift: A Swift SDK for Supabase. Query y...
A Swift SDK for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse Swift examples, invoke postgres functions via rpc, invoke supabase edge funct...
5 Replies
That is not your API URL. Check API Settings.
What you show is the database pooler port.
What you show is the database pooler port.
I attempted that URL host
https://MYUUID.supabase.co but I ran into an error A server with the specified hostname could not be found. after googling and reading a few posts which led me to use the pooler port as noted above.This is the correct URL.

Swift: Initializing | Supabase Docs
Supabase API reference for Swift: Initializing
Ah I figured it out, solution:
In Xcode, I had to enable outgoing connections first via the Capabiltiies tab. Thanks again @garyaustin