ios - 编译 xcode 项目时 Alamofire 的大量问题
问题描述
我正在轻柔地运行我的程序,在某些时候(可能关闭 Xcode 以重新打开或更新 pod 文件)它突然无法编译了。
我已经尝试打开 .xcodeproj 和 .xcworkspace。第一个在编译时显示此消息:
第二种情况显示了很多问题:
这是我的 pod 文件:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
target 'HonoluluArt' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
# Pods for HonoluluArt
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Alamofire', '~> 3.0'
pod 'GoogleMaps'
pod 'GooglePlaces'
end
我能得到任何帮助吗?非常感谢!
解决方案
尝试清除 pod 并重新安装:
在项目文件夹中执行:
pod deintegrate
然后清洁豆荚:
pod clean
重新安装 pod:
pod install
这应该工作
另外,如果您不需要特别Alamofire
删除v3~> 3
来安装最新版本并修改您的 Podfile:
target 'HonoluluArt' do
use_frameworks!
pod 'Alamofire'
pod 'GoogleMaps'
pod 'GooglePlaces'
end
推荐阅读
- java - 将 2 个值签入 ENUM
- java - 以套接字返回的字符串作为条件的 if 语句
- javascript - 如何限制使用密码字段的 val() 获取密码?
- javascript - 字符串插值格式在 Firestore 更新功能中不起作用
- python - 有什么方法可以在 Kaggle 中运行 Dash 应用程序?
- ruby-on-rails - 当我有大量工作时,延迟的工作会使用错误的数据执行
- python - 如何删除数组中特定范围的坐标或索引?
- python-3.x - Python中str类型的find()和index(),哪个时间复杂度更好?
- powershell - PowerShell:带有 PID 的 AppActivate 不起作用
- php - 将变量从 HTML 表单传递到 PHP