Xcode Undefined symbols for architecture i386:What does this error code mean, and how do I go about fixing it? - iphone

How do I resolved this issue. Any help would be appreciated.
directory not found for option '- L/Users/blank/Desktop/project/ipad_client/move/Modules/Unity/Libraries'
Undefined symbols for architecture i386:
"_AFNetworkingReachabilityDidChangeNotification", referenced from:
-[moveChat startTrackingNetworkEvents] in moveChat.o

Related

Upgrade from Facebook iOS SDK 3.2.1 to 3.5 gave me an error with FBCrypto

After installing the new sdk I cleaned the project and build it. It fails with this message:
Undefined symbols for architecture i386:
"_SecRandomCopyBytes", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
"_kSecRandomDefault", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Same problem anyone? Solutions?
Well, you need to include the security framework and the libsqlite3.dylib as stated here.
It works now.
edit
Also found this now...
Jumping on this, im running into the same issue, I saw that the FBSDK needs the Security, AdSupport, etc. Here's my linked libraries:
My error is the same:
Undefined symbols for architecture i386:
"_SecRandomCopyBytes", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
"_kSecRandomDefault", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
All the other framework dependencies are good to go as far as I can tell. A Vlean->Build didn't fix it either. Thanks.
Edit: Got it. I needed to re Add Files to Project and check the Add to Target button.. basically XCode automagicka

opencv framework with opengles trows error?

I tried running a basic opengl program from this link. I can run it successfully. Now I need some functionalities of opencv to be added in this.
So I added opencv framework from this link.
After adding the framework I changed the files to .mm and its compiling good. The problem comes when I add "cv::Mat Variable". I get the below error. What would be the reason for this?
The below is the error I get When I add "cv::Mat Variable".
Undefined symbols for architecture i386:
"_gzclose", referenced from:
_cvReleaseFileStorage in OpenCV(persistence.o)
_cvOpenFileStorage in OpenCV(persistence.o)
"_gzeof", referenced from:
icvEof(CvFileStorage*) in OpenCV(persistence.o)
"_gzgets", referenced from:
icvGets(CvFileStorage*, char*, int)in OpenCV(persistence.o)
"_gzopen", referenced from:
_cvOpenFileStorage in OpenCV(persistence.o)
"_gzputs", referenced from:
icvPuts(CvFileStorage*, char const*)in OpenCV(persistence.o)
"_gzrewind", referenced from:
_cvOpenFileStorage in OpenCV(persistence.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
This Solves my problem. To add add opencv library file
AVFoundation.framework
ImageIO.framework
libz.dylib
should be added. And this link explains clearly about this. http://aptogo.co.uk/2011/09/opencv-framework-for-ios/

Apple Mach-O Linker Error (2)

I'm getting 2 Mach-O Linker Errors in regards to the CloudApp API. I have been been searching for numerous answers in both StackOverflow, Apple's Developer forums, and elsewhere that would at least be remotely close to be problem, but they have not been very helpful. This has been boggling my mind for the past few days and I can't seem to fix it.
Here are the two errors:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_CLAPIEngine", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help would be appreciated. If you have any questions, just ask. Thanks in advance.
You're not linking in the framework as part of the build process
Build the cloud library first. Then ensure that the libCloud.a library is linked to your application

how to fix link error in xcode4 (and ios5)

I am using a 3rd party library and got the link error below in xcode4 with ios5. Can someone tell me how to fix this kinda error? Thanks a lot!!
Undefined symbols for architecture i386:
"std::string::assign(char const*, unsigned long)", referenced from:
meatloaf::boundaries::boundaries(std::vector<meatloaf::scanline, std::allocator<meatloaf::scanline> >) in libScannerKit.a(boundaries.o)
meatloaf::boundaries::find_boundaries() in libScannerKit.a(boundaries.o)
"std::string::_Rep::_S_empty_rep_storage", referenced from:
meatloaf::boundaries::boundaries() in libScannerKit.a(boundaries.o)
Thanks everyone for the help, really appreciated! I finally found out i need to set "Other linker flags" as "-all_load -lstdc++" for both debug and release. In project setting's "Build Settings/Linking/Other Linker Flags"

While AR integrating in custom APP getting errors :(

ld: warning: in /Users/kunwarhanda/Documents/Augmented/WikitudeAPI/libWikitudeAPI.a, missing required architecture i386 in file
Undefined symbols:
"_OBJC_CLASS_$_WTPoi", referenced from:
objc-class-ref-to-WTPoi in AugmentedAppDelegate.o
objc-class-ref-to-WTPoi in CustomMenuButtonDelegateImpl1.o
"_OBJC_CLASS_$_WikitudeARCustomMenuButton", referenced from:
objc-class-ref-to-WikitudeARCustomMenuButton in AugmentedAppDelegate.o
"_OBJC_CLASS_$_WikitudeARView
Controller", referenced from:
objc-class-ref-to-WikitudeARViewController in AugmentedAppDelegate.o
objc-class-ref-to-WikitudeARViewController in CustomMenuButtonDelegateImpl1.o
objc-class-ref-to-WikitudeARViewController in CustomMenuButtonDelegateImpl3.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
**I have cross checked that libWikitudeAPI.a is imported still does'nt know about this error and by the way m new to iPhone
Please can some one help me in this Thanks in advance **
The problem is that the library is only for device not for simulator. Try debug your app and use NSZombieEnabled environment variable for finding actual crash reasons.