Wednesday, January 31, 2024
HomeiOS Developmentios - Xcode not importing Supabase libraries accurately

ios – Xcode not importing Supabase libraries accurately


I am establishing a Swift iOS software utilizing Supabase for the back-end, however my Xcode will not be utilizing accurately the Supabase library. Im attempting to implement a Log in for my app, however after I name the Supabase Auth operate to authenticate, Xcode says “Module ‘Supabase’ has no member named ‘Auth'”.

Remember that im doing import Supabase in the beginning of the Swift file, and I initialize efficiently my SupabaseClient in the principle Swift file. I’ve the Supabase dependencies put in and Xcode exhibits them in Bundle Dependencies.

Right here is the piece of code that does not work:

func logIn(_ electronic mail: String, _ password: String) {
        
    do {
        strive await supabase.auth.signIn( //  <-- Line that does not work
            electronic mail: electronic mail,
            password: password  
        )
        // Code to execute if signIn is profitable
    } catch {
        // Deal with the error if signIn throws an exception
        print("Error signing in: (error)")
    }
        print(electronic mail, password)
        print("Autenticated!")
    }

Thanks upfront.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments