xcode - CocoaPods 未在 Swift Parse Chat App 中安装 Alamofire

标签 xcode swift parse-platform cocoapods alamofire

我正在尝试编译并运行以下应用程序(使用 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/

相关文章:

objective-c - 如何将我的 Swift 应用程序连接到我的 Parse Server?

javascript - express.js 限制 api 访问仅来自同一网站的页面

iphone - iOS iVar 命名为 "Size"语法错误?

ios - Flutter:应用程序不是 x86_64。运行 lipo -info:,应用程序架构:arm64

cordova - 从相机加载图像内容到文件

ios - 如何向嵌入 UINavigationController 的 UICollectionViewController 添加菜单栏?

ios - 添加和检索单元格到字典丢失单元格信息 swift3

ios - subview 在 Interface Builder 中消失

不同 iOS 操作系统上的 iOS 兼容性

objective-c - 将布局 anchor 与 UIStackView 一起使用时出错