ios - Alamofire 在我的项目中不起作用

标签 ios xcode swift alamofire

我在我的项目中创建了 pod 文件并在工作区中打开了它,但是我的项目无法构建并且它有很多错误 我的 Xcode 版本是 7.0.1 enter image description here

谢谢

最佳答案

故障排除:

1) 您是否导入了 Alamofire

2) 您是否取消了 podfile 中 use_framework 行的注释,然后再次执行 pod install

3) 你更新到最新版本的 XCode 了吗?


解决方案:

最新版本的 Alamofire 需要最新版本的 XCode!

更新到 Xcode 7.3 !


引用:

https://github.com/Alamofire/Alamofire#requirements

Requirements

  • iOS 8.0+ / Mac OS X 10.9+ / tvOS 9.0+ / watchOS 2.0+
  • Xcode 7.3+

替代解决方案:

使用旧版本的 Alamofire(不推荐)。

关于ios - Alamofire 在我的项目中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37215296/

相关文章:

iphone - UIButton 状态

xcode - Soundex 对每个字符返回 0

ios - Xcode IB 自动调整大小?

c - 当包含 glext.h 时在 xcode 中编译 c 代码的奇怪问题

ios - 即使使用 set delegate,MKMapview delegate 也从未被调用

compiler-errors - 怎么把UInt64转换成Int64?

ios - 验证信用卡号

ios - 获取音频持续时间字符串的浮点值

ios - didFinishPickingMediaWithInfo : 未返回图像

ios - 使用设备的 UDID 在 Xcode 中制作 .app 文件