最佳答案
故障排除:
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/