Hi All,
I'll start by saying i am complete beginner when it comes to coding/ developing. So please be easy on me, im also using AI tools to help and learn so apologies if what im saying doesnt make sense.
The error im getting is
/Services/SupabaseManager.swift:47:29 Cannot find 'GlobalOptions' in scope
From AI tells me 'GlobalOptions' is defined a types.swift file in the supabase package
public struct GlobalOptions: Sendable {
/// Optional headers for initializing the client, it will be passed down to all sub-clients.
public let headers: [String: String]
/// A session to use for making requests, defaults to `URLSession.shared`.
public let session: URLSession
/// The logger to use across all Supabase sub-packages.
public let logger: (any SupabaseLogger)?
public init(
headers: [String: String] = [:],
session: URLSession = .shared,
logger: (any SupabaseLogger)? = nil
) {
self.headers = headers
self.session = session
self.logger = logger
}
}
From what i can see i have added the supabase package successfully, following this guide - https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app
Here are some screenshots of my xcode to show the added package.