0
ld: warning: directory not found for option '-L/Users/MYcomputer002/Documents/MGTwitterEngineTest/yajl/build/yajl-1.0.7/lib'
ld: framework not found Cocoa
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

I am implementing MGTwitterEngine in my project. After large modification and removing an error I stuck with the above error. What about this exact error?

Abizern
  • 146,289
  • 39
  • 203
  • 257
Ajay_Kumar
  • 1,381
  • 10
  • 34
  • 62

1 Answers1

1

MGTwitterEngine references but doesn't contain yajl. You have to add it yourself. You can download and copy the files manually or add it as a framework following the instructions at the yajl page.

If you dig around in the MGTwitterEngine you'll see the yajl files in red, that means they are missing. You'll find the same problem with OAuthConsumer and TouchJSON.

Jano
  • 62,815
  • 21
  • 164
  • 192
  • @jano, Thanks for reply. I downloaded files from the link and i added it in project directory well. And I also dragged in my Xoce3 project. This is added successfully. But when I am trying to compile it I am seeing an error No such file or directory : Yajl/yajl_common.h". What i should to do ? I was downloaded file from the above link. – Ajay_Kumar Jun 13 '11 at 11:25
  • Try this: make a copy of the whole https://github.com/gabriel/yajl-objc/tree/master/yajl-1.0.11 folder inside the MGTwitterEngine project (including subfolders). Then delete the yajl folder from the MG project and add the yajl-1.0.11 folder. – Jano Jun 13 '11 at 11:33
  • @Jano, My all errors is now gone but now I am getting above mentioned error. "ld: warning: directory not found for option '-L/Users/mycomputer002/Documents/MGTwitterEngineTest/yajl/build/yajl-1.0.7/lib' ld: framework not found Cocoa collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 " – Ajay_Kumar Jun 13 '11 at 11:49
  • Go to Build Settings in the target MGTwitterEngine, type yajl, you'll see the nodes Library Search Paths, Header Search Paths. Double click the value on each of them and delete the entries referencing yajl-07. Since you just added the source files for yajl, you don't need it there. I guess it was intended to link to a parallel yajl project. – Jano Jun 13 '11 at 11:54
  • @Jano. above error is removed now. But now I am getting error in Libxml/xmlreader No such filr or directry in MGTwitterLibXMLParser.h file . Please explain me about this error. – Ajay_Kumar Jun 13 '11 at 12:10
  • Go to Build Settings > Header Search Paths and add: `$(SDKROOT)/usr/include/libxml2` – Jano Jun 13 '11 at 12:15