I plan to use the Google Drive APIs in my Swift project. I am trying to add a drive SDK through CocoaPods (v0.39.0). Below is my subfile.
platform :ios, '8.0' use_frameworks! pod 'Google-API-Client/Drive'
I added the use_frameworks! flag use_frameworks! so CocoaPods can convert Objective-C pods to Swift frames instead of static libraries.
Installation substitution completed successfully. However, when I create a project, I get the following error.
Duplicate interface definition for class 'GTMHTTPUploadFetcher'
Deleting the DerivedData folder and cleaning up the project did not help.
I also tried without adding use_frameworks! and then adding the library through the header header. It works without a problem. The fact is that all my other addictions work with him. And, unfortunately, CocoaPods does not support that this flag is displayed only for certain containers.
Is there any workaround?
As stated in the Google docs , Google engineers presumably control issues tagged with google-drive-sdk, so I hope that at least they will see this and fix it soon.
ios swift cocoapods google-drive-sdk
Isuru
source share