I have a podfile with only Objective-C pods, that looks like this:
source 'https://github.com/CocoaPods/Specs.git'
target "myProject" do
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'GooglePlacePicker'
pod 'GoogleMaps'
pod 'RMMapper'
pod 'Parse'
pod 'Mapbox-iOS-SDK'
pod 'PocketSVG', '~> 0.7'
pod 'Fabric'
pod 'Answers'
pod 'lottie-ios'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
and a bridiging header that looks like this:
#import <Parse/Parse.h>
#import <GoogleMaps/GoogleMaps.h>
#import "PocketSVG.h"
#import <Lottie/Lottie.h>
Now, I want to add Alamofire, which is a Swift pod. So I have to use use_frameworks!
, and my podfile looks like this:
source 'https://github.com/CocoaPods/Specs.git'
target "myProject" do
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'GooglePlacePicker'
pod 'GoogleMaps'
pod 'RMMapper'
pod 'Parse'
pod 'Mapbox-iOS-SDK'
pod 'PocketSVG', '~> 0.7'
pod 'Fabric'
pod 'Answers'
pod 'lottie-ios'
pod 'Alamofire' # Added
use_frameworks! # Added
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
but when I'm trying to build my project, I get 2 errors:
The first is on my bridging header:
'PocketSVG.h' file not found
The second is not on a specific file:
Failed to import bridging header
Any idea how can I fix it?