I have done a lot of research but i didn't find any helpful thing.
I have following problem.
I am trying to make an app for school. till now it is working fine on simulator and on my iPhone 4 and on my iPad 3.
i have imported the 'RestKit' project to use it for the connection with my restful web service. (imported it with cocoa pods)
now i wanted to test it on the simulator on the 64-bit device (iPhone 5S)
but since i have added an open source project (ZBarSDK) for an QR-Code Reader i am getting this error.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_AFHTTPClient", referenced from:
objc-class-ref in TDOFTDatabase.o "_OBJC_CLASS_$_RKObjectManager", referenced from:
objc-class-ref in TDOFTDatabase.o "_OBJC_CLASS_$_RKObjectMapping", referenced from:
objc-class-ref in TDOFTDatabase.o "_OBJC_CLASS_$_RKResponseDescriptor", referenced from:
objc-class-ref in TDOFTDatabase.o "_RKMIMETypeJSON", referenced from:
-[TDOFTDatabase init] in TDOFTDatabase.o "_RKStatusCodeIndexSetForClass", referenced from:
-[TDOFTDatabase writeUser:] in TDOFTDatabase.o
-[TDOFTDatabase getMyID] in TDOFTDatabase.o
-[TDOFTDatabase loadAllDepartments] in TDOFTDatabase.o
-[TDOFTDatabase loadStations:atPos:] in TDOFTDatabase.o ld: symbol(s) not found for architecture i386 clang: error: linker command
failed with exit code 1 (use -v to see invocation)
Related
I have project that worked fine in Xcode4. I am trying to upgrade to Xcode 8.3. The project runs fine on iPhone 5 simulator which is 32 bit architecture. But the project fails to run on any other iPhone or iPad.
ld: warning: ignoring file /Users/myusername/Library/Developer/Xcode /DerivedData/Test-xxxxrfwxdtcybcclbezelabexxy/Build/Products/Debug-iphonesimulator/libMapView.a, file was built for archive which is not the architecture being linked (i386): /Users/myusername/Library/Developer/Xcode/DerivedData/Test-xxxxfwxdtcybcclbezelabexxy/Build/Products/Debug-iphonesimulator/libMapView.a
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_RMMapContents", referenced from:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_RMMapContents", referenced from:
objc-class-ref in TestViewController.o
"_OBJC_CLASS_$_RMDBMapSource", referenced from:
objc-class-ref in TestViewController.o
"_OBJC_CLASS_$_RMPath", referenced from:
objc-class-ref in TestViewController.o
"_OBJC_CLASS_$_RMMarkerManager", referenced from:
objc-class-ref in TestViewController.o
"_OBJC_CLASS_$_RMMarker", referenced from:
objc-class-ref in TestViewController.o
"_OBJC_CLASS_$_RMMapView", referenced from:
objc-class-ref in TestViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried adding active architecture armv7, armv8, armv6, armv7s but still does not build or run on simulators that is other than iPhone 5.
I moved a source code from another MAC machine to mine Mac, Previously the code was fine, when I stared building an error occurred Parse.h not found , after searching on google, I figured out that error after clearing that error Now, I am facing this:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FBSDKAccessToken", referenced from:
objc-class-ref in ParseFacebookUtilsV4(PFFacebookUtils.o)
objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBSDKSettings", referenced from:
objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I AM NOT USING PODS in code.
Help me !
Thanks
I'm trying to use the amazon AWS for iOS SDK but I keep getting several Apple Mach-O Linker errors in Xcode 6.1.1, this error happened when i'm trying to use iOS simulator iPhone 5s but it works fine on 4s simulator. Any help would be much appreciate.
AWS Framework I'm using is AWSiOSSDK v 1.7.0
ld: warning: ignoring file
/Users/xxx/Downloads/xxxios_app/FacebookSDK.framework/FacebookSDK,
missing required architecture x86_64 in file
/Users/xxx/Downloads/xxx_ios_app/FacebookSDK.framework/FacebookSDK (3
slices) ld: warning: ignoring file
/Users/xxx/Downloads/xxx_ios_app/AWSiOSSDK.framework/AWSiOSSDK,
missing required architecture x86_64 in file
/Users/xxx/Downloads/xxx_ios_app/AWSiOSSDK.framework/AWSiOSSDK (3
slices) Undefined symbols for architecture x86_64:
"_OBJC_CLASS$AmazonEndpoints", referenced from: objc-class-ref in
LoginViewController.o objc-class-ref in PhotoViewController.o
"_OBJC_CLASS$AmazonErrorHandler", referenced from: objc-class-ref in
LoginViewController.o objc-class-ref in PhotoViewController.o
"_OBJC_CLASS$AmazonLogger", referenced from: objc-class-ref in
LoginViewController.o objc-class-ref in PhotoViewController.o
"_OBJC_CLASS$AmazonS3Client", referenced from: objc-class-ref in
LoginViewController.o objc-class-ref in PhotoViewController.o
"_OBJC_CLASS$FBNativeDialogs", referenced from: objc-class-ref in
LoginViewController.o "_OBJC_CLASS$_FBRequestConnection", referenced
from: objc-class-ref in LoginViewController.o objc-class-ref in
PhotoViewController.o
https://stackoverflow.com/a/3949338/2245240
This happens when you add a framework to your project and unintentionally copy the framework into your project directory.
The fix is to check your project directory (where you store your project on disk) for any iphone SDK *.Framework files and delete them.
Project will build fine afterwards.
I am trying to archive my First iOS Project and I get the following errors. It seems like there is something bugged with the Facebook SDK and Google Plus SDK which i have used for Authentication. I have come across similar questions on stackoverflow but none's solutions helped me. Any help would be appreciated. Thanks in advance.
<pre>
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_GTMLogger", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_GTLQueryPlus", referenced from:
objc-class-ref in LoginViewController.o
"_kGTLAuthScopePlusLogin", referenced from:
-[LoginViewController getInfoForGoogle] in LoginViewController.o
"_OBJC_CLASS_$_GTLServicePlus", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_GPPURLHandler", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_GPPSignIn", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in LoginViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</pre>
The framework you are using is not arm64 ready, ie not for 64bit devices, you can either check if an updated framework is available, or exclude arm64 that from your build
Set the architecture in build settings to Standard architectures(armv7,armv7s)
Xcode 5 and iOS 7: Architecture and Valid architectures
I'm using Cocoapod to get Global Lib. It works fine in the simulator, but it has some error when I build on my device:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in HomeViewController.o
"_OBJC_CLASS_$_SBJsonParser", referenced from:
objc-class-ref in IQRequest.o
"_AFNetworkingOperationFailingURLResponseErrorKey", referenced from:
___78-[IQRequest performQueueOperationWithRequest:withSuccessBlock:andFailedBlock:]_block_invoke39 in IQRequest.o
"_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
objc-class-ref in IQRequest.o
"_OBJC_CLASS_$_AFHTTPClient", referenced from:
objc-class-ref in IQRequest.o
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in ChooseDesignerViewController.o
objc-class-ref in IQUser.o
objc-class-ref in IQAppDelegate.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What has happened to my project?
It seems like your library isn't compiled for armv7s. If it's distributed as binary you'll have to ask the maintainer to rebuild it with an armv7s slice. If it's distributed as source code you have to check the projects build settings. I think you should look for valid architectures or something like that.