Unable to use SDWebImage

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:

+4
source share
2

. -. CocoaPods, Carthage git . "" : , ( ), , . , , . , , , ( , ). ? CocoaPods.

:

$ sudo gem install cocoapods

Xcode. .xcodeproj . :

$ pod init

.podfile. pod 'SDWebImage', '~> 3.7'.

$ pod install

, .xcodeworkspace. .

+2

- .

:

  • → →
  • +

, .

+1

Source: https://habr.com/ru/post/1626116/


All Articles