我正在尝试编译并运行以下应用程序(使用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)
这背后是什么?
谢谢!
答案 0 :(得分:3)
如果一切设置正确,则会出现
等错误从没有这样的模块'Alamofire'
.xcodeproj
构建项目时会发生。
默认情况下,您需要构建集成来自.xcworkspace
的CocoaPods的项目。