Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linker command error: 'ld: symbol(s) not found for architecture i386'

I have an error at compile time. Seems to be weird. it worked as detail view application, but using single view doesn't seem to work. this is the error details:

   Undefined symbols for architecture i386:
    "_OBJC_CLASS_$_RssArticle", referenced from:
      objc-class-ref in RssXmlParser.o
  ld: symbol(s) not found for architecture i386
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
like image 984
Siddharthan Asokan Avatar asked Jul 19 '12 03:07

Siddharthan Asokan


2 Answers

Try these steps:

  1. Open your project in XCode.

  2. In left side window/panel of XCode click on your project name on top.

  3. Now select Target from right side panel of XCode.

  4. Select Build Phases from right panel's top. (here other option will be Build Settings, Build Rules)

  5. In the same panel open the "Compile sources", here check: are all the files (.m) listed? if not all files click on (+) sign in bottom to add (.m) files which is not in list

  6. As per your error it seems RssXmlParser not there, add this and compile again

It will work fine now.

like image 68
iOS Test Avatar answered Dec 15 '22 16:12

iOS Test


don't see anybody suggesting to go to terminal and go to the directory where the project is and run

xcodebuild -verbose

to see detailed error and just reading the error helps a lot of the time

like image 34
vp_gold Avatar answered Dec 15 '22 14:12

vp_gold