我正在尝试编译并运行以下应用程序(使用 Alamofire 的 Swift Chat 应用程序)。
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)
这背后是什么??
谢谢!
最佳答案
如果一切设置正确,错误如
No such Module 'Alamofire'
当您从 .xcodeproj
构建项目时发生。
默认情况下,您需要从 .xcworkspace
构建集成 CocoaPods 的项目。
关于xcode - CocoaPods 未在 Swift Parse Chat App 中安装 Alamofire,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30174838/