Not in scope

52 views
Skip to first unread message

D Eck

unread,
Apr 21, 2025, 9:38:50 AMApr 21
to Google APIs Client Library for Objective-C

I am trying to connect to a google worksheet with a service account and have added the GoogleAPIClientForRest (Drive and Sheets) and GTMSessionFetcher (Core) dependencies to my project. However, this code

import GoogleAPIClientForRESTCore import GTMSessionFetcherCore

func test() { let x = GTLRServiceAccountCredentials.self let y = GTLRAuthorizer.self print("Classes Found") }

I get the the following errors: Cannot find "GTLRServiceCredentials' in scope and Cannot find 'GTLRAuthorizer' in scope.

The dependencies are listed in the Link Binary with Libraries section.

This part of an iOS app being built in Xcode. I am running the latest Xcode an OS.

thom...@google.com

unread,
Apr 21, 2025, 9:41:11 AMApr 21
to Google APIs Client Library for Objective-C
I'm not sure what either GTLRAuthorizer or GTLRServiceCredentials are, they aren't classes from the google/google-api-objectivec-client-for-rest project.  Are you follow a guide that is mistaken?

TVL
Reply all
Reply to author
Forward
0 new messages