objective c - YouTube integration issue in iOS SDK -


i integrating youtube in app in have login user authentication.i got sample code working fine.when started integrating code in app getting issues.

first:-

when run same code in sample app made telling gtlyoutube.h file missing.i unable know how sample working though not have file.

second:-

subsequently added downloaded file svn checkout svn checkout http://google-api-objectivec-client.googlecode.com/svn/trunk/ google-api-objectivec-client-read-only , added files in app.

then although gtlyoutubeconstants.m present can see in services->youtube->generated getting error gtlyoutubeconstants.m file not found.

i unable find while compiler unable find file.is there wrong in implementation?

finally came solution.i need make lot of changes in code write in steps can helpful others.

the main problem got in gtlyoutube_sources.m,gtlcommon_sources.m , gtlnetworking_sources.m.when used these files sample app files missing , getting message gtlyoutubeconstants.m file not found in gtlyoutube_sources.m file.from comments of developer in gtlyoutube_sources.m came know can't directly use these files.

* licensed under apache license, version 2.0 (the "license");  * may not use file except in compliance license.  * may obtain copy of license @  *  * http://www.apache.org/licenses/license-2.0 

so downloaded files svn checkout http://google-api-objectivec-client.googlecode.com/svn/trunk/google-api-objectivec-client-read-only , added files in app.then again got error when removed gtlyoutube_sources.m,gtlcommon_sources.m , gtlnetworking_sources.m files form project error gone(since have added needed files).

then again got duplicate symbol _objc_metaclass_$ (linker error).then had remove gtlyoutube_sources.m services->youtube->generated folder , error gone.

i had made other changes along this:

i changed header search path same used in sample app.also changed framework search path $(sdkroot)/developer/library/frameworks $(inherited) $(developer_frameworks_dir) , removed test files , didn't use test framework can see in downloaded files.

may solution not proper let code running please suggest me improvement needed.


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -