© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
6 replies
Ken

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 :

       let supabaseURL = "aws-0-us-east-1.pooler.supabase.com"
        let supabaseKey = "sb_publishable_KEY"
        
        client = SupabaseClient(
            supabaseURL: URL(string: supabaseURL)!,
            supabaseKey: supabaseKey,
            options: .init(storage: .init())
        )
       let supabaseURL = "aws-0-us-east-1.pooler.supabase.com"
        let supabaseKey = "sb_publishable_KEY"
        
        client = SupabaseClient(
            supabaseURL: URL(string: supabaseURL)!,
            supabaseKey: supabaseKey,
            options: .init(storage: .init())
        )


    let defaultStorageKey = "sb-\(supabaseURL.host!.split(separator: ".")[0])-auth-token"
    let defaultStorageKey = "sb-\(supabaseURL.host!.split(separator: ".")[0])-auth-token"


Task 58: Fatal error: Unexpectedly found nil while unwrapping an Optional value
Task 58: Fatal error: Unexpectedly found nil while unwrapping an Optional value
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...
GitHub - supabase/supabase-swift: A Swift SDK for Supabase. Query y...
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Swift & App Groups (Extensions)
SupabaseSSupabase / help-and-questions
13mo ago
Auth Flow for Swift App and Backend
SupabaseSSupabase / help-and-questions
7mo ago
Swift SDK 2.37.0 Added Massive New Dependencies, Breaking My Build
SupabaseSSupabase / help-and-questions
3mo ago
[bug?] Supabase-swift SDK always times out on simulator
SupabaseSSupabase / help-and-questions
5mo ago