I am using xcconfig files for defining keys in debug and release mode. This is my podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
target 'MainTarget' do
use_frameworks!
pod 'Alamofire','~>4.4'
pod 'KFSwiftImageLoader'
pod 'FMDB'
pod 'Fabric'
pod 'Crashlytics'
pod 'Charts'
pod 'OpenSSL-Universal'
pod 'EVReflection'
pod 'Socket.IO-Client-Swift'
pod 'GoogleMaps'
end
target 'Target2' do
use_frameworks!
pod 'Alamofire','~>4.4'
end
target 'Target3' do
use_frameworks!
pod 'Alamofire','~>4.4'
end
target 'NetworkLibrary' do
use_frameworks!
pod 'Alamofire','~>4.4'
end
Target2,Target3,Network Library are frameworks added to project. Following is my dubug.xcconfig:
#include "Pods/Target Support Files/Pods-MainTarget/Pods-MainTarget.debug.xcconfig"
#include "Pods/Target Support Files/Pods-NetworkLibrary/Pods-NetworkLibrary.debug.xcconfig"
#include "Pods/Target Support Files/Pods-Target1/Pods-Target1.debug.xcconfig"
#include "Pods/Target Support Files/Pods-Target2/Pods-Target.debug.xcconfig"
MAIN_KEY = 3145bjk34
FULL_KEY = 23bjkkj31
I defined release.xcconfig in a similar way(just changing key values and pod includes). I am getting error FMDB.h file not found. Why might i get this? Before adding configs everything was working fine. I added my config files in the Info tab too.
Interestingly if i change my podfile like following it is working fine:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
target 'MainTarget' do
use_frameworks!
pod 'Alamofire','~>4.4'
pod 'KFSwiftImageLoader'
pod 'FMDB'
pod 'Fabric'
pod 'Crashlytics'
pod 'Charts'
pod 'OpenSSL-Universal'
pod 'EVReflection'
pod 'Socket.IO-Client-Swift'
pod 'GoogleMaps'
end
target 'Target1' do
use_frameworks!
pod 'Alamofire','~>4.4'
pod 'KFSwiftImageLoader'
pod 'FMDB'
pod 'Fabric'
pod 'Crashlytics'
pod 'Charts'
pod 'OpenSSL-Universal'
pod 'EVReflection'
pod 'Socket.IO-Client-Swift'
pod 'GoogleMaps'
end
target 'Target2' do
use_frameworks!
pod 'Alamofire','~>4.4'
pod 'KFSwiftImageLoader'
pod 'FMDB'
pod 'Fabric'
pod 'Crashlytics'
pod 'Charts'
pod 'OpenSSL-Universal'
pod 'EVReflection'
pod 'Socket.IO-Client-Swift'
pod 'GoogleMaps'
end
target 'NetworkLibrary' do
use_frameworks!
pod 'Alamofire','~>4.4'
pod 'KFSwiftImageLoader'
pod 'FMDB'
pod 'Fabric'
pod 'Crashlytics'
pod 'Charts'
pod 'OpenSSL-Universal'
pod 'EVReflection'
pod 'Socket.IO-Client-Swift'
pod 'GoogleMaps'
end
If i add all pods to frameworks it is working fine.Why is this happening?