1. Download Google Objective C Client. For developing any iOS application, that use some of Google APIs, we need to have Google libraries downloaded. In terminal run this command:
svn checkout http://google-api-objectivec-client.googlecode.com/svn/trunk/ google-api-objectivec-client-read-only2. Build library. From downloaded items in Source folder open GTL.xcodeproj and choose iOS simulator and GTLTouchStaticLib as target. Then build library again, this time for iOS device. From Organizer>Products go to derived data by clicking arrow:
From Build>Products>Debug-iphoneos copy to e.g Desktop libGTLTouchStaticLib.a and rename it to e.g. libGTLTouchStaticLib1.a. Do the same for the file from Build>Products>Debug-iphonesimulator and rename it to libGTLTouchStaticLib2. With this command in Terminal, build fat static library
lipo -create -output libGTLTouchStaticLib.a libGTLTouchStaticLib1.a libGTLTouchStaticLib2.a
4. Adding frameworks and libraries. Add Security.framework, SystemConfiguration.framework and libGTLTouchStaticLib.a to project.
Now you can run your application on both iOS device and simulator, and start using Google Youtube API for fetching videos.