第一次在最新的Xcode 7.2.1和Swift 2.1中使用可可豆荚(最新版本)进行依赖。我初始化我的项目文件夹,然后编辑podfile并添加我的依赖项。当我运行时,pod install
它会顺利运行,直到打开项目并尝试构建。我已经尝试了两个单独的项目(其中一个是全新的测试项目),我linker command failed with exit code 1 (use -v to see invocation)
两个都得到了。我的pod文件看起来像这样:
platform :ios, '8.0' #8.0 is minimum supported, right?
use_frameworks!
target 'Testing Frameworks' do
pod 'Alamofire', '~> 3.0'
end
关闭当前项目,然后打开在项目文件夹中创建的.xcworkspace。
祝好运!
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句