【发布时间】:2018-03-15 11:36:28
【问题描述】:
我的项目运行良好,但是当我添加了 alamofire 时它无法正常工作。
出现以下错误
ld:警告:找不到选项的目录 '-F/Users/banglafire/Desktop/mysios/Build/Products/Debug-iphonesimulator/Alamofire' ld:找不到框架 Alamofire clang:错误:链接器命令失败 退出代码为 1(使用 -v 查看调用)
其他信息
Cocopad 1.3.1 版
我的 pod 文件
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'My' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for My
pod 'Alamofire'
end
我该如何解决?请帮忙!
【问题讨论】:
-
在工作区的 Pods 项目中的 Pods 文件夹中查找 Alomafire。如果不存在,则将其添加到您的 pod 文件中,pod install 不起作用。