Comments (8)
Explicitly add import GTMSessionFetcher
in Swift
from google-api-objectivec-client.
First up, please note this project has been deprecated in favor of GTLR (Note: there is a Migrating From GTL to GTLR doc).
The issue is likely the use of a Swift bridging header. Sadly, bridging headers will strip all properties, methods, etc. that reference an "incomplete" type. Incomplete is caused simply by things being forward declared (@Class Foo, @protocol DoSomething). To have the properties exposed, you have to manually import the header that define the forward declared types:
Try adding:
#import <GTMSessionFetcher/GTMSessionFetcher.h>
#import <GTMSessionFetcher/GTMSessionFetcherService.h>
That should fix the problem. When you hit this sorta issue in ObjC, it can kick out an error about the type of the property being incomplete, but with a bridging header it just drops them leaving it in this confusing state when you try to access them.
from google-api-objectivec-client.
It almost sounds like you don't have GTLRYouTubeService.h
in your bridging header and maybe just have @class GTLRYouTubeService
. If the full header is there, they it will know it is a subclass of GTLRService
, and GTLRService
provides the authorizer
.
from google-api-objectivec-client.
I have added that in bridging.h file already. Still getting the same error. I have changed the framework search path in build settings as well, but no luck.
#import <GoogleAPIClientForRest/GTLRYouTube.h>
from google-api-objectivec-client.
Can you set up a simple example project that shows it? At the moment I'm at a loss since I haven't seen this before.
from google-api-objectivec-client.
btw - this if filed on GTL, not GTLR. I'm going to close this out since it is the wrong project, go ahead and reopen on the correct one.
from google-api-objectivec-client.
I also facing with the bug. how to fix it?
from google-api-objectivec-client.
@huongtran84 look at attached podfile.lock file
from google-api-objectivec-client.
Related Issues (20)
- Error installing Google-API-Client HOT 2
- The documentation should be rewritten completely! HOT 1
- fields documentation wrong HOT 20
- AppStore rejected the app because nextStartIndex conflict with apple's private API HOT 13
- With GTL_USE_SESSION_FETCHER enabled, build fails HOT 3
- Fetching extremely large YouTube playlists HOT 3
- GTMOAuth2ViewCOntrollerTouch.h file not found HOT 4
- Would this work to access the Google Core Reporting Api? HOT 1
- Has this library been deprecated? HOT 7
- Error:invalid_Client The OAuth client was not found HOT 12
- FR: Phase Out notice should be higher in the README (top of file) HOT 1
- APi Documentation currently pointing to old SVN hosting HOT 2
- Best method for adding Google Auth HOT 1
- GTLDriveFileList does not implement the items property, which means auto-paging does not work HOT 3
- Support package managers other than Cocoapods. HOT 8
- I getting Error In Generate API using discovery file... HOT 1
- Build and Archive error
- Cocoapod cannot resolve sub specs - PeopleService HOT 1
- google drive Api Uploadprogressblock not work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-api-objectivec-client.