我正在轻柔地运行我的程序,在某个时候(可能关闭了 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:
pod clean
重新安装 Pod:
pod install
这应该有效
如果您特别不需要 Alamofire
v3,请删除 ~> 3
以安装最新版本并修改您的 Podfile:
target 'HonoluluArt' do
use_frameworks!
pod 'Alamofire'
pod 'GoogleMaps'
pod 'GooglePlaces'
end
关于ios - 编译 xcode 项目时 Alamofire 出现大量问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56133226/