This question is already asked here But no answers work for me. I have tried all the ways which are mentioned below.
I am checking all scenario since 4 to 5 hours but I am not getting the exact reason why this is happening.
Below is my Pod file.
platform :ios, '12.0'
use_frameworks!
target 'ProjectName' do
pod 'Alamofire'
pod 'SDWebImage'
end
SDWebImage is a Swift pod depending on Objective-C, which is different than Alamofire, and needs one extra step:
CocoaPods 1.5.0+ (and Xcode 9+)::modular_headers => true to the line of package name, like: # For CocoaPods after 1.5.0
target 'ProjectName' do
pod 'Alamofire'
pod 'SDWebImage', :modular_headers => true
end
use_frameworks! in the Podfile, like# For CocoaPods before 1.5.0
target 'ProjectName' do
use_frameworks!
pod 'Alamofire'
pod 'SDWebImage'
end
Finally, to apply the change, please
pod update in the project folder.xcworkspace file in Xcode again.Reference:
SDWebImage Installation Guide
CocoaPods 1.5.0 — Swift Static Libraries
This happened to me many times try these steps:
-> Try cleaning your project
OR
-> Restart your Xcode
OR
-> If you doing a new project setup than try again new project again
workspacepods installing from freshrebuild3rd option could work as this happens many times when search paths are not getting in build settings of your project
Start Fresh