CocoaPods没有在Swift Parse Chat App中安装Alamofire

时间:2015-05-11 18:17:51

标签: xcode swift parse-platform cocoapods alamofire

我正在尝试编译并运行以下应用程序(使用Alamofire的Swift Chat App)。

https://github.com/huyouare/SwiftParseChat

我使用的是ruby-2.0.0,cocoapods 0.37.1,xcode 6.3,Alamofire 1.2.0

我使用普通<pod install>命令安装它。在此过程中没有错误或警告。 但是,在编译时,我得到:

No such Module 'Alamofire'

如果我手动安装Alamofire,编译时我会收到Apple Match-O Linker错误:

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)

这背后是什么?

谢谢!

1 个答案:

答案 0 :(得分:3)

如果一切设置正确,则会出现

等错误
  

没有这样的模块'Alamofire'

.xcodeproj构建项目时会发生

默认情况下,您需要构建集成来自.xcworkspace的CocoaPods的项目。