Cocoapods framework cannot find file in another cocoapods framework Cocoapods framework cannot find file in another cocoapods framework xcode xcode

Cocoapods framework cannot find file in another cocoapods framework


Please check the profile - AFNetworking version

Change to

pod 'AFNetworking', '~> 2.5.4'

and use

#import "AFHTTPRequestOperationManager.h"


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()    }}


Copy the framework and delete it. If the problem persists, go to framework and library's and drag the file there. That should make the file visible by all other files then go back and try importing