【发布时间】:2016-02-09 17:10:00
【问题描述】:
尝试通过 Cocoapods 安装 Alamofire。这是一个零配置的全新应用程序。我已经pod install 应用程序并通过它的工作区打开了项目。使用 XCode 7.1 收到以下错误。
ld: framework not found Alamofire
clang: error: linker command failed with exit code 1 (use -v to see invocation)
播客文件
# Uncomment this line to define a global platform for your project
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'Bitcoin Watcher' do
pod 'Alamofire', '~> 3.1'
end
target 'Bitcoin WatcherTests' do
end
target 'Bitcoin WatcherUITests' do
end
Pods.framework 在我的Linked Frameworks and Libraries 中找到。这绝对令人沮丧,因为我尝试了许多解决方案,但都没有奏效。 Cocoapods 版本为0.39。
【问题讨论】:
-
我遇到了这个错误,但在我的情况下,我构建了一次项目,然后它停止显示错误。试试这个。
-
我已经清理并构建了这个项目。错误仍然出现。
-
项目名不会有问题吧?尝试删除您的“目标”,然后只写“pod 'Alamofire'”。
-
确保您的
xcodebuild -version是您期望的版本。还要确保您的 CocoaPods 安装在0.39.0是最新的。 -
同样的事情,你设法让它工作了吗?
标签: ios swift cocoapods alamofire tvos