获取此错误
ld: framework not found Alamofire
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我今天早上第一次尝试cocoapods。
sudo gem install cocoapods
pod setup
我的Podfile如下所示:
xcodeproj '/Users/adamek/Development/xCode/Swift_2015/Foody16/Foody16.xcodeproj'
platform :ios, '8.0'
use_frameworks!
pod 'SwiftyDropbox', :git => 'git@github.com:dropbox/SwiftyDropbox.git', :tag => '0.5'
pod install
会返回此信息:
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Using Alamofire (2.0.2)
Using SwiftyDropbox (0.5)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed.
那部分看起来不错,但是当我尝试构建我的应用程序时,我得到以下内容。
ld: framework not found Alamofire
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我还尝试了pod repo remove master --verbose
然后又pod install
,但仍然没有运气。有什么建议吗?
答案 0 :(得分:0)
您的podfile不对。我建议你采取一些措施。小心地跟着他们
use_frameworks!
platform :ios, ‘8.0’
pod 'SwiftyDropbox'
pod 'Alamofire'
<Alamofir/Alamofir.h>
这些步骤可以解决您的问题。如果有任何其他错误,请评论此帖。