我正在使用依赖于AFNetworking作为链接框架的Cocoapods安装的库。安装该库后,我的项目将无法编译,因为无法找到导入的AFNetworking文件。Cocoapods框架无法在另一个cocoapods框架中找到文件
然而,似乎模块是造成问题的原因,因为如果我更改从进口:
#import "AFHTTPRequestOperationManager.h"
到
#import <AFNetworking/AFHTTPRequestOperationManager.h>
..the错误消失。我宁愿不去改变这些链接库中的代码,所以如何让我的库成功找到AFNetworking文件?
编辑这里是我的podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '6.0'
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
platform :ios, '8.0'
target 'Motospot' do
pod 'Alamofire', '~> 1.2'
pod 'youtube-ios-player-helper', '~> 0.1.1'
pod 'BDBOAuth1Manager'
end
target 'MotospotTests' do
end
您是否尝试关注此链接:https://guides.cocoapods.org/using/troubleshooting.html –
您可以发布您的Podfile吗? – zaabalonso
@zaabalonso - 完成。 – hgwhittle