Xcode: Version 7.2
OS X: 10.10.5
I am new to iOS and trying to use SDWebImage in Objective-C following the official installation guide, but I will get this error:
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_SDWebImageManager", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I downloaded the zip file and unzipped it and added the file to my project.
Also added dependency "ImageIO.framework" and Linker flag "-ObjC".
Screenshot
I already read these questions:
. -. CocoaPods, Carthage git . "" : , ( ), , . , , . , , , ( , ). ? CocoaPods.
:
$ sudo gem install cocoapods
Xcode. .xcodeproj . :
$ pod init
.podfile. pod 'SDWebImage', '~> 3.7'.
pod 'SDWebImage', '~> 3.7'
$ pod install
, .xcodeworkspace. .
- .
, .
Source: https://habr.com/ru/post/1626116/More articles:Почему мы можем создать экземпляр стека, но не очередь? - javaThread throw System.OutOfMemoryException in a WPF Application - multithreadingspring: получить ответ как многостраничный файл из REST WebService - springPDFBOX2.0: java heap heap error - javaHow to find PageImagableArea page for other documents - c #how to get build number for jenkins to work through python code - pythonPartial indices in mongodb / mongoose - node.jsUndefined symbols for arm64 architecture: "_OBJC_CLASS _ $ _ PayTabCardReaderViewController" referenced by: objc-class-ref in ViewController.o - iosBroken links in solution - visual-studioHow to manually deploy a third-party jar utility for an Apache Spark cluster? - apache-sparkAll Articles