0

I am having trouble setting up my GData project for iPhone. I followed the instructions from the answer in the post How to use GData in iphone?. The project compiled fine but gives me a linker error if I try to run it. The linker error is

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GDataServiceGoogleYouTube", referenced from:
  objc-class-ref in BWC_ViewController-C85FBF830F43777.o
ld: symbol(s) not found for architecture i386

Please se the attached screenshot

enter image description here

Thanks!

Community
  • 1
  • 1
tbag
  • 1,268
  • 2
  • 16
  • 34
  • You claim the project compiles fine yet the output you posted clearly shows a whole bunch of compiler warnings. Warnings are bad. Fix them first. – rmaddy Feb 24 '13 at 19:27
  • The warnings were because I added header files in the compile sources in Build Phases. Removed them and the warnings are fixed now. But the linker error still persists. – tbag Feb 24 '13 at 20:01
  • Note that the GData API is not the current API for YouTube. Instead, apps should use the new JSON-based library, https://code.google.com/p/google-api-objectivec-client/ – grobbins Feb 26 '13 at 02:39

3 Answers3

0

Usually your error means, that you are using GDataServiceGoogleYoutube in your BWC_ViewController without #import "GDataServiceGoogleYoutube" or some of GData .m files missing in your target. See following comment https://stackoverflow.com/a/14148008/2092007

Community
  • 1
  • 1
Ivan Lisovyi
  • 538
  • 5
  • 13
  • The Gdata*.m files were missing from the target of my xcode project. They were present in the target of the GData project. However, as soon as I added them in the target, I am seeing ~200 odd warning messages like "warning: no rule to process file '$(PROJECT_DIR)/TestYoutube/../../../trunk/Source/Introspection/GData AtomCategoryGroup.m' of type file for architecture i386" – tbag Feb 24 '13 at 21:25
0

Yes i got it.

this error because Gdata api use non arc and your project use arc. To avoid this two options are there

  1. Go to project targets select the Build Phases tab go to Compile Sources find GDataServiceGoogleYoutube.m file and double click ,Type -fno-objc-arc.

  2. change your project to non-arc (I recommend you to do the first option).

Note: You must change the all gdata classes to -fno-objc-arc.

Ajumal
  • 1,048
  • 11
  • 33
0

You have to create runtime lib for deveice as well as simulator .

Get details in below Link http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/