Hi i have this problem in xcode..
Undefined symbols for architecture i386:
"_inflateInit_", referenced from:
_decode_frame in libavcodec.a(pngdec.o)
"_inflateEnd", referenced from:
_decode_frame in libavcodec.a(pngdec.o)
"_inflate", referenced from:
_decode_frame in libavcodec.a(pngdec.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
online i haven't found any solution, have any idea? thanks
From the Apple mailnglists:
To use the routines, include zlib.h in your source and libz.dylib into your project.
Or get zlib: zlib.net
Or get the CocoaPod: objective-zip
Related
I keep getting this warning while trying to build my app, also can't link to firebase. I am using xcode 9.2
'''Undefined symbols for architecture x86_64:
"_sqlite3_prepare_v3", referenced from:
-[APMSqliteStore prepareSQL:error:] in GoogleAppMeasurement(APMSqliteStore_645df61703f07a6639f4b1de4d0cf5c3.o)
"_OBJC_CLASS_$_GDTStorage", referenced from:
objc-class-ref in libGoogleDataTransport.a(GDTUploadPackage.o)
objc-class-ref in libGoogleDataTransport.a(GDTLifecycle.o)
objc-class-ref in libGoogleDataTransport.a(GDTUploadCoordinator.o)
objc-class-ref in libGoogleDataTransport.a(GDTTransformer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)'''[1]
Add libsqlite3.tbd to 'Linked Frameworks and Libraries' in the project properties.
I have worked in google calendar. Now i have download the sample code from this link:
"http://code.google.com/p/iphone-gcal/".
But in this code it is some Gdata codes are missing. So i have implemented that code but also i got this below errors. Please some body help me to solve this errors.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GDataDateTime", referenced from:
objc-class-ref in RootViewController.o
objc-class-ref in EditingViewController.o
"_OBJC_CLASS_$_GDataEntryCalendarEvent", referenced from:
objc-class-ref in EditingViewController.o
"_OBJC_CLASS_$_GDataQueryCalendar", referenced from:
objc-class-ref in RootViewController.o
"_OBJC_CLASS_$_GDataServiceGoogleCalendar", referenced from:
objc-class-ref in RootViewController.o
"_OBJC_CLASS_$_GDataWhen", referenced from:
objc-class-ref in RootViewController.o
objc-class-ref in EditingViewController.o
"_OBJC_CLASS_$_GDataWhere", referenced from:
objc-class-ref in EditingViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You need to add the gdata .m files (GDataDateTime.m, GDataEntryCalendarEvent.m, etc.) to your target's “Compile Sources” build phase.
One way to do this is using the File Inspector. See this answer for an animated example.
I'm trying to create application that sends email
I used classes like
SKPSMTPMessage , NSStream+SKPSMTPExtensions, NSData+Base64Additions, HSK_CFUtilities, Base64Transcoder
but it gives me the following errors
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKPSMTPMessage", referenced from:
objc-class-ref in MFViewController.o
"_kSKPSMTPPartContentTransferEncodingKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartContentTypeKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartMessageKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_CFHostCreateWithName", referenced from:
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in NSStream+SKPSMTPExtensions.o
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in SKPSMTPMessage.o
"_CFStreamCreatePairWithSocketToCFHost", referenced from:
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in NSStream+SKPSMTPExtensions.o
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in SKPSMTPMessage.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
keep in mind that I'm using Xcode 4.3 ,
what shall I do to solve this??
After adding the CFNetwork framework and SystemConfiguration framework ,
the number of errors decreased from 6 to 4 and it is now
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKPSMTPMessage", referenced from:
objc-class-ref in MFViewController.o
"_kSKPSMTPPartContentTransferEncodingKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartContentTypeKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartMessageKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This error message means that those classes search some objects in a framework that you haven't linked to your project. Here you can found what framework do you need: the CFNetwork framework.
I hope it helps!
EDIT
The other 4 errors might be caused by the incorrect importation of the SKPSMT classes. If that classes are downloaded as a library, you'll also need to link your app with that library.
Try adding the following linker flags:
OTHER_LDFLAGS = -lz -lxml2 -ltidy -ObjC
I try to change the app which is in 4 to 5, during the build it shows the error like below.
Can any one give the solution for this?
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FlurryAPI", referenced from:
objc-class-ref in NewsViewController.o
objc-class-ref in NewsDetailViewController.o
objc-class-ref in ArchiveIndvidualView.o
objc-class-ref in ArchiveMenuViewController.o
objc-class-ref in ReleaseDetailView.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I develop an Iphone application on Xcode 4.0. I have to format an HTML file and put it into a Txt view. I'm trying to use TBXML , but i have 6 errors when I debug:
Undefined symbols for architecture i386:
"_deflateInit2_", referenced from:
-[NSData(NSDataAdditions) gzipDeflate] in NSDataAdditions.o
"_deflate", referenced from:
-[NSData(NSDataAdditions) gzipDeflate] in NSDataAdditions.o
"_deflateEnd", referenced from:
-[NSData(NSDataAdditions) gzipDeflate] in NSDataAdditions.o
"_inflateInit2_", referenced from:
-[NSData(NSDataAdditions) gzipInflate] in NSDataAdditions.o
"_inflate", referenced from:
-[NSData(NSDataAdditions) gzipInflate] in NSDataAdditions.o
"_inflateEnd", referenced from:
-[NSData(NSDataAdditions) gzipInflate] in NSDataAdditions.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Something with gZip library i guess... If somebody know an issue to fix that or an other good/complete XMLParse library, thanks to answer me :D
PS: If you had some difficults to read, i'm sorry for my english...
This type of error means that you haven't included a library or framework.
A quick Google of deflateInit2 tells me it's the libz framework.
If you add libz.dylib to your list of frameworks it should compile.
Hope that helps.