Please how to solve this issue... link mismatch
I'm trying to use OAUTH2.0 in my apps...
When i try to install to physical phone.. i got below message.
But when i tried on simulator is everything ok.
Undefined symbols for architecture armv7s:
"_kGTMHTTPFetcherStatusDomain", referenced from:
-[GTMOAuth2Authentication beginTokenFetchWithDelegate:didFinishSelector:] in
libOAuthTouch2.a(GTMOAuth2Authentication.o)
-[GTMOAuth2SignIn authCodeObtained] in libOAuthTouch2.a(GTMOAuth2SignIn.o) "_OBJC_CLASS_$_GTMHTTPFetcher",
referenced from:
objc-class-ref in libOAuthTouch2.a(GTMOAuth2Authentication.o)
objc-class-ref in libOAuthTouch2.a(GTMOAuth2SignIn.o) "_GTMAssertSelectorNilOrImplementedWithArgs", referenced from:
-[GTMOAuth2Authentication authorizeRequest:delegate:didFinishSelector:] in
libOAuthTouch2.a(GTMOAuth2Authentication.o)
-[GTMOAuth2SignIn initWithAuthentication:authorizationURL:delegate:webRequestSelector:finishedSelector:]
in libOAuthTouch2.a(GTMOAuth2SignIn.o) ld: symbol(s) not found for
architecture armv7s clang: error: linker command failed with exit code
1 (use -v to see invocation)
Thanks
Go to project ->build setting -> architecture and add armv6,armv7.
remove armv7s. Similarly for the target->build setting->architecture.
armv define family of instruction set being used.
Related
in my google plus code i get this error. what problem for this error in my code
_OBJC_CLASS_$_GTMLogger", referenced from:
objc-class-ref in libGooglePlusUniversal.a(GPPShareBuilderImpl.o)
"_OBJC_CLASS_$_GTMOAuth2Keychain", referenced from:
objc-class-ref in libGooglePlusUniversal.a(GPPSignIn.o)
"_OBJC_CLASS_$_GTMOAuth2SignIn", referenced from:
objc-class-ref in libGooglePlusUniversal.a(GPPSignIn.o)
"_OBJC_CLASS_$_GTMOAuth2ViewControllerTouch", referenced from:
objc-class-ref in libGooglePlusUniversal.a(GPPSignIn.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
have you added frameworks like... libxml2.dylib, security,mapkit,corelocation,systemconfiguration frameworks etc....?? if not then add those frameworks and then check...
Let me know it is working or not!!!!!
Happy coding!!!!!!
This warning means that you're trying to use library made for Device (ARM) with your Simulator (i386).
while i am trying to build my iOS project where iam using storyboard .
Also using transition and animation classes in my project.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FooterView", referenced from:
objc-class-ref in WallViewController.o
"_OBJC_CLASS_$_FullScreenView", referenced from:
objc-class-ref in WallViewController.o
"_OBJC_CLASS_$_HeaderView", referenced from:
objc-class-ref in WallViewController.o
"_OBJC_CLASS_$_LayoutViewExtention", referenced from:
objc-class-ref in WallViewController.o
"_OBJC_CLASS_$_MessageModel", referenced from:
objc-class-ref in WallViewController.o
"_OBJC_CLASS_$_TitleAndTextView", referenced from:
objc-class-ref in WallViewController.o
"_RGBACOLOR", referenced from:
-[WallViewController showViewInFullScreen:withModel:] in WallViewController.o
-[WallViewController animationEnd:finished:context:] in WallViewController.o
-[AFKPageFlipper initFlip] in AFKPageFlipper.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It is difficult to analyse such questions without a project at your eyes. But as they are linker errors and you seem to use one of the latest Xcodes and WallViewController is not standard UIKit class (as far as i know(there is no 'UI' prefix)), i guess that you included the files improperly.
Try to delete references to the WallViewController files and add them again into the project by right clicking the group where you want to put them and then "add files..." (my xcode doesn't like dragging for some unknown reason).
Pls have look at link.
Select project and goto build phase and add the missing file "WallViewController.m" to compile source.
I am trying to compile the sample iphone openssl created by x2on here:
https://github.com/x2on/OpenSSL-for-iPhone
I get the following errors when trying to compile in Xcode 4.3.3:
Undefined symbols for architecture i386:
"_MD5", referenced from:
-[ViewController calculateMD5:] in ViewController.o
"_SHA256_Init", referenced from:
-[ViewController calculateSHA256:] in ViewController.o
"_SHA256_Update", referenced from:
-[ViewController calculateSHA256:] in ViewController.o
"_SHA256_Final", referenced from:
-[ViewController calculateSHA256:] in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've been trying to troubleshoot this for a day or so and I am stumped on what to do.
I can provide more information if needed.
According to this site, it indicates that you need to link with libcrypto.
I just figured out why it wasn't working. I never included the shared libraries in the same folder as my project and never linked the header search paths. After cleaning up my project and rebuilding it recognized the Openssl library and it compiled.
I have integrated a new external framework to my project, the framework is well imported, however, i get a strange error when trying to build and run the project:
"_OBJC_CLASS_$_MPInit", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_RMMapView", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I try several attempts but haven't find the solution.
Any suggestion will be appreciated.
I'm trying to get route-me offline maps to compile in xCode 4. They were fine in xCode 3.
I believe my issue is with architecture settings. Looking at the following post, it looks like I should change proj4 to be armv6 only and leave the main project and mapview at standard (v6 & v7).
However, I still get the following errors:
Undefined symbols for architecture armv6:
"_OBJC_CLASS_$_RMMarker", referenced from: objc-class-ref in OSMapViewController.o
"_OBJC_CLASS_$_RMDBMapSource", referenced from: objc-class-ref in OSMapViewController.o
"_OBJC_CLASS_$_RMMapContents", referenced from: objc-class-ref in OSMapViewController.o
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status
Any help would be warmly welcomed.
Chris.
It seems to be a bug in XCode.
I downloaded xcode 4.0.2 and it compiles and works without any error or warnings!!
Update your xcode.