Error is occuring during implementation of MGTwitterengine - iphone

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?

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.

Related

error:Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1

I am new to iPhone development and I am implementing a new facebook sharing. After adding sharekit folder it's giving the following error when it runs:
ld: duplicate symbol _OBJC_CLASS_$_SBJSON in /Users/anil/Desktop/untitled folder 2/SMSCollection_15-10-mng/DerivedData/elsner_frmwrk/Build/Intermediates/elsner_frmwrk.build/Debug-iphonesimulator/elsner_frmwrk.build/Objects-normal/i386/SBJSON-48FA8505A9CE4B54.o and /Users/anil/Desktop/untitled folder 2/SMSCollection_15-10-mng/DerivedData/elsner_frmwrk/Build/Intermediates/elsner_frmwrk.build/Debug-iphonesimulator/elsner_frmwrk.build/Objects-normal/i386/SBJSON-D2068CA62086265C.o for architecture i386
What am I doing wrong?
It seems like you are using two different versions of an SBJSON framework.

Undefined symbols for architecture armv7 in xcode

I am stuck into errors when using codeTimestamp classes to checkout speed of my code.
But these classes are working on any other project. I don't know what happen to this.
Errors are:
Undefined symbols for architecture armv7:
"__Z25LogTimestampChunkInMethodPKciaa", referenced from:
-[EAGLView renderFrameQCAR] in EAGLView.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks in advance for help, have a great day.
You know you have to set the -fno-obj-arc flag on that file, right?
Look in your EAGLView source file, and find where you use LogTimestampStartChunk. Is that the only file you added LogTimestampStartChunk to? If so then for whatever reason, the CodeTimeStamp.o is not being added to your Target. If you do have the LogTimestampStartChunk used in other files, comment it out of EAGLView and see if you can get it to build.
Ultimately, if you cannot use this macro in even one file and get the project to build, then you never included the CodeTimeStamp.o file. If you can get it to build otherwise, then its something about EAGLView.

How to use Springboard framework in xcode 4.3.1

I want to use "springboard" framework , I have added that framework by drag and drop in xcode downloading from github.com , but when I want to run it I got some error :
Undefined symbols for architecture i386:
"_SBSCopyLocalizedApplicationNameForDisplayIdentifier", referenced
from:
-[ViewController getActiveApps] in ViewController.old: symbol(s) not found for architecture i386 clang: error: linker command
failed with exit code 1 (use -v to see invocation)
why this error any one have any idea. I think have some issue in "headersearch path" setting any one kindly say how to set this .
Thanks.
Having the headers is not enough, you have to link to the springboard binary as well.
However, I'm pretty sure the springboard is not available inside an application, so even if you get it to link, I'm pretty sure calling any springboard method will fail.
What you need to do to use springboard's methods is to make a mobile substrate extension.

recieved apple O Linker Error when adding ASIHTTPRequest

this has made me crazy today, I use ASIHTTPRequest, http://allseeing-i.com/ , already, but here, am trying now to add it to an app, once added it gave me this crazy error.
I have started a new fresh project, and commented all related code, added the code without it, and yes, it works, added it, and it's libraries and no it doesn't work and I got this crazy Error, I'm stuck and need help.
BTW, this is the detailed error,
ld: warning: ignoring file /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0/Symbols/usr/lib/libz.1.2.3.dylib, missing required architecture i386 in file
ld: warning: ignoring file /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0/Symbols/usr/lib/libSystem.dylib, missing required architecture i386 in file
ld: in /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0/Symbols/usr/lib/libobjc.A.dylib, missing required architecture i386 in file for architecture i386
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
Thank you,
Regards,
Ahmed
I got the answer now.
I have copied the older version, a working version of my app. Or just create a new project and add the files that are not related to this, and make sure it's working and building.
Then, Added the frameworks from project setting (first icon on left) and then added from the build phase the correct libraries.
My problem was : I was trying to add the libraries by dragging them into my project, and the problem was specially for this one. libz.1.2.3.dylib. Thank you anyways, hope this is helpful for someone.

Bump + OpenStreetMap Error

I have problem with use OpenStreetMap lib and Bump lib.
I obtained critical error -
ld: duplicate symbol _OBJC_IVAR_$_FMDatabase.databasePath in /Users/
alex/APP/BumpAPI/libBumpAPI.a(FMDatabase.o) and /Users/alex/APP/
CloudMade/libs/route-me/libMapView.a(FMDatabase.o) for architecture
armv6
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-
gcc-4.2 failed with exit code 1
I find solve for this problem.
I find sources of RoutMe library, that includes in CloudMade library. And change name of class "FMDatabase" to "_FMDatabase". Next, rebuild libMapView.
But, this problem exist with other libraries (non open-source) in other projects.