How to use Drive API with Swift

330 views
Skip to first unread message

K Miyamoto

unread,
Dec 11, 2023, 8:09:26 AM12/11/23
to Google APIs Client Library for Objective-C
I'm trying to develop MacOS app with Swift and SwiftUI which include Drive api. When I import 'GoogleAPIClientForREST_Drive' module to use GTLRDriveService(), Xcode said no such module.

Here are what I try to solve this problem.
・Download google-api-objectivec-client-for-ios from Package Manager. (Download seemed to success, but 'No such module' error appear. ) 
・Other module such as GoogleAPIClientForRESTCore and GoogleAPIClientForREST_ACMEDNS can be imported successfully. 

How can I solve this problem? Was the structure of Drive API changed? Help me, please!

thom...@google.com

unread,
Dec 11, 2023, 9:54:14 AM12/11/23
to Google APIs Client Library for Objective-C
I'm not sure what "google-api-objectivec-client-for-ios" is, maybe just a typo?

My guess would be you haven't made you project depend on the Drive product and that's why the module isn't exposed. Maybe you can make a small project to show your setup and failure and upload that and someone on this group can help take a look?
Reply all
Reply to author
Forward
0 new messages