Cocoapods framework cannot find file in another cocoapods framework
Finally I succeed in configuring AFNetworking with swift. This is the Podfile:
Podfile:
source 'https://github.com/CocoaPods/Specs.git'platform :ios, '8.0'use_frameworks! pod 'AFNetworking', '~> 2.5'
Bridge_AFNetworking.h
#ifndef eShop_Bridge_AFNetworking_h#define eShop_Bridge_AFNetworking_h#import <AFNetworking/AFNetworking.h>#endif
This is some sample code using AFNetworking.
import UIKitimport AFNetworkingclass DataManager: NSObject { static let sharedInstance = DataManager() let manager:AFHTTPRequestOperationManager = AFHTTPRequestOperationManager() override init() { super.init() }}