0

I have configured the AFNetworking API with the help of Cocoa Pods and now I have to configure SDWebImage. I tried to add "platform :ios, '7.0' pod 'SDWebImage', '~>3.8'"in my existing pod file but it is not working and giving me the following error as shown in the image. enter image description here

Do I need to create separate pod file? If yes then where it should be located in my project directory.

This is my existing Podfile:

target ‘<MYAPPNAME>’ 
do 
    pod 'AFNetworking', '~> 2.5' 
    pod 'SDWebImage', '~>3.8' 
end
Adrian
  • 16,233
  • 18
  • 112
  • 180
Developer
  • 6,375
  • 12
  • 58
  • 92
  • Can you post your pod file? Also, what editor are you using to edit it? – Adrian Jun 28 '16 at 10:38
  • target ‘’ do pod 'AFNetworking', '~> 2.5' pod 'SDWebImage', '~>3.8' end ----------------------------------------- This is after adding pod for SDWebImage – Developer Jun 28 '16 at 10:42
  • 1
    Did you try a `pod repo update`? – Larme Jun 28 '16 at 12:51
  • @Developer Are you using Obj-C or Swift? Looks like installation is slightly different for Swift. https://github.com/rs/SDWebImage#installation – Adrian Jun 28 '16 at 13:51
  • I am using Objective C. And what is wrong with my pod file? And what "pod repo update" will do? – Developer Jun 29 '16 at 03:54
  • 1
    @Adrian Worked after running the command "pod repo update" :-) – Developer Jun 29 '16 at 04:35
  • @Developer `pod repo update` was a suggestion in the logs. My guess, but you could do a `man pod`, is that it update the local repository copy that it made to the wanted version (if for instance you got previous the version 2.1 of SDWebImage) if needed. – Larme Jun 29 '16 at 16:43
  • @Larme Thanks for your suggestion. Please write your comment in the answer so that I can Accept that. Moreover, where I can find these kind of more instructions as I wan to read them. Thanks!:-) – Developer Jun 30 '16 at 04:01

0 Answers0