Xcode ld: framework 'Auth0' not found

Hello! First time here so apologies if the tags are incorrect.

I am fairly new to Swift development and am attempting to set up Auth0 within the app. Using IOS 17 and Xcode 15

Using SwiftUI, below is my code.

import SwiftUI
import SwiftData
import Auth0

struct ContentView: View {

    var body: some View {
        
        Button("Login") {
            print("test")
            Auth0
                .webAuth()
                .start { result in
                    switch result {
                    case .success(let credentials):
                        print("Obtained credentials: \(credentials)")
                    case .failure(let error):
                        print("Failed with: \(error)")
                    }
                }
        }
    }

With this, and even with the Auth0 part commented out, I get the following Warnings and errors
-Warning - search path ‘/Users/name/Library/Developer/Xcode/DerivedData/it-byfqwwttizlrdhgjhulfipmqrpkk/Build/Intermediates.noindex/Previews/it/Products/Debug-iphonesimulator/Auth0’ not found
-Warning - search path ‘/Users/name/Library/Developer/Xcode/DerivedData/it-byfqwwttizlrdhgjhulfipmqrpkk/Build/Intermediates.noindex/Previews/it/Products/Debug-iphonesimulator/JWTDecode’ not found
-Warning - search path ‘/Users/name/Library/Developer/Xcode/DerivedData/it-byfqwwttizlrdhgjhulfipmqrpkk/Build/Intermediates.noindex/Previews/it/Products/Debug-iphonesimulator/SimpleKeychain’ not found
-Error - ld: framework ‘Auth0’ not found
-Error - clang: error: linker command failed with exit code 1 (use -v to see invocation)

What should be done in this case to fix the errors? Thanks!

1 Like