When i'am trying to compile with Xcode i get the following errors:
Undefined symbols for architecture i386:
"_CGImageSourceCopyPropertiesAtIndex", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_CGImageSourceCreateImageAtIndex", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_CGImageSourceCreateIncremental", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_CGImageSourceUpdateData", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
objc-class-ref in MWPhotoBrowser.o
"_kCGImagePropertyPixelHeight", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_kCGImagePropertyPixelWidth", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There must be a problem with SDWebImage class, which MWPhotoBrowser use.
This is really strange and confusing, and I don't know how to fix it.
Thanks guys.
The problem is most likely that the project is not including the ImageIO framework. Go to your Target -> Build Phases -> Link and verify that in fact you have ImageIO there.
I think that i have the solution...
Go to to the target of your app and on the right, click on the Build Phases tab and in the Compile Sources Section click on + and add the SDWebImage.m
Hope that helps !
Related
I'm coding using swift and followed the AWS documentation:
Added the updated frameworks on the Objective-C Bridging header
Setup cognito on app delegate
after that, this is spitting out:
Undefined symbols for architecture i386:
"_deflate", referenced from:
-[NSData(AWSGZIP) awsgzip_gzippedDataWithCompressionLevel:] in AWSCore(AWSGZIP.o)
"_deflateEnd", referenced from:
-[NSData(AWSGZIP) awsgzip_gzippedDataWithCompressionLevel:] in AWSCore(AWSGZIP.o)
"deflateInit2", referenced from:
-[NSData(AWSGZIP) awsgzip_gzippedDataWithCompressionLevel:] in AWSCore(AWSGZIP.o)
"_inflate", referenced from:
-[NSData(AWSGZIP) awsgzip_gunzippedData] in AWSCore(AWSGZIP.o)
"_inflateEnd", referenced from:
-[NSData(AWSGZIP) awsgzip_gunzippedData] in AWSCore(AWSGZIP.o)
"inflateInit2", referenced from:
-[NSData(AWSGZIP) awsgzip_gunzippedData] in AWSCore(AWSGZIP.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Using Xcode 7.0
How can I fix this?
You need to add libsqlite3.dylib and libz.dylib and SystemConfiguration.framework. See Set Up the SDK for iOS for more details.
While building the Application i am getting the following error i have searched a lot but i am unable to figure out what is the problem.
ld: warning: ignoring file /Users/username/GoogleMaps/GoogleMaps.framework/GoogleMaps, missing required architecture arm64 in file /Users/username/GoogleMaps/GoogleMaps.framework/GoogleMaps (2 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GMSPolyline", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSCameraPosition", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSMutablePath", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSMarker", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSMapView", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSServices", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using GoolgeMaps SDK 1.4.3
PS:- I am relatively new to iOS programming so please avoid any blunders.
Adding value $(inherited) to BuildSettings->Linking->Other Linker Flags of your target
If you are developing an SDK/framework/POD you should do the same as above but under target name PROJECTNAME_tests.
Should fix the issue.
I had this problem too, and my solution was to add the frameworks to
Target -> Build Phases -> Link Binary With Libraries
ok I figured out the Problem
My Library was not built for 64-bit but i was trying to use that settings for my app, after i removed arm64 from architecture i successfully build the application.
Can't figure this out. Tried making a completely new project and it still doesn't work. This app uses GoogleMaps. Error below:
Undefined symbols for architecture i386:
"_CBAdvertisementDataManufacturerDataKey", referenced from:
-[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in
GoogleMaps(PEBeaconScanner.o) "_CBAdvertisementDataServiceDataKey",
referenced from:
-[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in
GoogleMaps(PEBeaconScanner.o)
"_CBCentralManagerScanOptionAllowDuplicatesKey", referenced from:
-[GMSx_PEBeaconScanner scanIfAppropriate] in GoogleMaps(PEBeaconScanner.o) "_OBJC_CLASS_$_CBCentralManager",
referenced from:
objc-class-ref in GoogleMaps(PEBeaconScanner.o) "_OBJC_CLASS_$_CBUUID", referenced from:
objc-class-ref in GoogleMaps(PEBeacon.o)
objc-class-ref in GoogleMaps(PEBeaconScanner.o) "_vImageBoxConvolve_Planar8", referenced from:
(anonymous namespace)::CreateBlurredImage(CGImage*, float, float) in GoogleMaps(GLWaterGroup.o) ld: symbol(s) not found for
architecture i386 clang: error: linker command failed with exit code 1
(use -v to see invocation)
Try importing CoreBluetooth.framework and Accelerate.framework. Also use "-ObjC" instead of "-all_load" in under "Other Linker Flags".
You can refer colink's reply in GoogleMapsSDK : Undefined symbols for architecture x86_64
i have sqlite3.dylib also in my application, but it give me that upper error i don't know that how to fix this error. please someone help me i am waiting?
Undefined symbols for architecture i386:
"_sqlite3_open", referenced from:
-[MyDataBase openOrCreateDatabase:] in MyDataBase.o
"_sqlite3_exec", referenced from:
-[MyDataBase createTable:] in MyDataBase.o
-[MyDataBase InsertTable:] in MyDataBase.o
-[MyDataBase UpdataTable:] in MyDataBase.o
-[MyDataBase queryTableByCallBack:] in MyDataBase.o
"_sqlite3_close", referenced from:
-[MyDataBase closeDatabase] in MyDataBase.o
"_sqlite3_get_table", referenced from:
-[MyDataBase queryTable:] in MyDataBase.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You're showing us the linked libraries for the "Fortress of Muslim" target, but your linker error is happening on the other target, the "Fortress of MuslimTests" target.
Either remove the dependency to SQLite in the "Tests" target, or include SQLite to the list of linked libraries for that target.
I am integrate LinkedInIOS Login Demo with my current application from:
https://github.com/jeyben/IOSLinkedInAPI
Also add supporting classes of "AFNetworking".
And It's gives me an error as mention below:
Undefined symbols for architecture armv7:
"_kUTTagClassMIMEType", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_kUTTagClassFilenameExtension", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_UTTypeCopyPreferredTagWithClass", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please suggest me any solution about it. My deployment target was 5.0.
That problem was resolved. As possible issue for that kind of problem was shown at below question:
https://stackoverflow.com/questions/6429494/...
But in my case I need to add MobileCoreServices.framework
By adding this framework problem was resolved.
Thanks.