I use gdata framework and I want to create youtube app with GDataYoutube library. I make project with cross-references project Gdata, but now I have a problem with option in xcode 4 -> product -> archive. When I build my app I get this error: ‘The service placeholder compiler flag should be replaced by actual service specifications’
#if !DEBUG
#if GDATA_INCLUDE_nameServiceHere_SERVICE && !GDATA_SUPPRESS_INCLUDE_WARNING
#error The service placeholder compiler flag should be replaced by actual service specifications
#endif
#endif
Thanks for any help!
gdata is a monolithic library, and the objective-c version lets you use the preprocessor mechanism to link out the services you aren’t interested in. Seems like it should be a convenience feature, but the author chose to make it mandatory. It’s probably for the best: using it liposucked 4MB out of my binary.
e.g. say you want to use just the YouTube API on iOS, you’d open the GData project, duplicate libGDataTouchStaticLib.a target, then add
to Build Settings > Other C Flags
This fixes your build problem and gives you a leaner app. Bonus!