Google Api _GTMOAuth2ViewControllerTouch not found

北城余情 提交于 2019-12-12 02:32:31

问题


I am trying to integrate with Youtube Data API. I have put these libraries inside my project folder:

google-api-objectivec-client-read-only

and, inside of folder: google-api-objectivec-client-read-only

gtm-http-fetcher
gtm-oauth2
gtm-session

inside google-api-objectivec-client-read-only. However, during build:

(null): "_OBJC_CLASS_$_GTMOAuth2ViewControllerTouch", referenced from:

How can I take above error away?

Here is my Header Search Path:


回答1:


I think this link will help you out

https://github.com/google/google-api-objectivec-client/issues/165




回答2:


Finally I managed to be able build my project based on answer here.

I get the files from here.

Added following .h and .m files to my project and disable their ARC -fno-objc-arc:

GTMOAuth2Authentication
GTMOAuth2SignIn
GTMOAuth2ViewControllerTouch (also with XIB file)


来源:https://stackoverflow.com/questions/37563249/google-api-gtmoauth2viewcontrollertouch-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!