CocoaPods未在Swift Parse Chat App中安装Alamofire [英] CocoaPods not installing Alamofire in Swift Parse Chat App
问题描述
我正在尝试编译并运行以下应用程序(使用Alamofire的Swift Chat App).
I am trying to compile and run the following application (Swift Chat App using Alamofire).
https://github.com/huyouare/SwiftParseChat
我正在使用ruby-2.0.0,cocoapods 0.37.1,xcode 6.3,Alamofire 1.2.0
I am using ruby-2.0.0 , cocoapods 0.37.1, xcode 6.3, Alamofire 1.2.0
我正在使用普通的<pod install>
命令安装它.在此过程中没有错误或警告.
但是,在编译时,我得到:
I am installing it using the normal <pod install>
command. No errors or warnings during the process.
However, when compiling, I get:
No such Module 'Alamofire'
但是,如果我手动安装Alamofire,则在编译时会出现Apple Match-O Linker
错误:
If I install Alamofire manually, however, when compiling I get an Apple Match-O Linker
Error :
ld: warning: directory not found for option '-F/Users/cristian/Library/Developer/Xcode/DerivedData/SwiftParseChat-btvjczpwjlekftetblbfrbposakh/Build/Products/Debug-iphoneos/Pods'
ld: framework not found Pods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这背后是什么?
谢谢!
推荐答案
如果所有设置均正确,则将出现诸如
If everything is setup correctly, errors such as
没有此类模块"Alamofire"
No such Module 'Alamofire'
从.xcodeproj
构建项目时发生.
默认情况下,您需要从.xcworkspace
构建集成CocoaPods的项目.
By default you need to build project integrating CocoaPods from .xcworkspace
.
这篇关于CocoaPods未在Swift Parse Chat App中安装Alamofire的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!