SDWebImage import fails despite CocoaPod installation

I inserted SDWebImage in Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'NSData+Base64', '~> 1.0'
pod 'Facebook-iOS-SDK', '~> 3.23'
pod 'CrashlyticsFramework', '~> 2.2'
pod 'AFNetworking', '~> 2.5'
pod 'NewRelicAgent', '~> 4.186'
pod 'GoogleAnalytics-iOS-SDK', '~> 3.10'
pod 'Reachability', '~> 3.2'
pod 'SDWebImage', '~> 3.7'

and then:

pod install
pod update

All of this has been successfully installed.

But when I open the workspace and try to access the library, I get this when importing #import <SDWebImage/UIImageView+WebCache.h>

TNCViewController.m:12:9: 'SDWebImage/UIImageView+WebCache.h' file not found

In the Pods project, I see Pods / SDWebImage

and I added manually ImageIO.frameworkto related structures and libraries.

What else can I do? Never before had such a problem with the cocoapod library.

Update I found a problem!

If I delete Target MembershipUnit for tests, then it will compile !! This also happened in a new project in which I copied the files.

This means that the Pod program does not install files for a test purpose. Any idea what I can do, please?

+4
1

!!

Cocoa : https://github.com/kylef/cocoapods-deintegrate

pod deintegrate
rm Podfile.lock
rm Podfile
pod init
vim Podfile

- > My Pod :

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

target 'News' do

pod 'NSData+Base64', '~> 1.0'
pod 'Facebook-iOS-SDK', '~> 3.23'
pod 'CrashlyticsFramework', '~> 2.2'
pod 'AFNetworking', '~> 2.5'
pod 'NewRelicAgent', '~> 4.186'
pod 'GoogleAnalytics-iOS-SDK', '~> 3.10'
pod 'Reachability', '~> 3.2'
pod 'SDWebImage', '~> 3.7'

end

target 'NewsTests' do

pod 'SDWebImage', '~> 3.7'

end

. , ViewController, , .

pod init . , .

, .

+4

All Articles