ios - 编译 xcode 项目时 Alamofire 出现大量问题

标签 ios swift xcode alamofire

我正在轻柔地运行我的程序,在某个时候(可能关闭了 Xcode 以重新打开或更新了 pod 文件)它突然无法再编译了。

我已经尝试打开 .xcodeproj 和 .xcworkspace。第一个在编译时显示此消息:

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 并重新安装:

  1. 在项目文件夹中执行:pod deintegrate

  2. 然后清理 pod:pod clean

  3. 重新安装 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/

相关文章:

swift - ios13 tls证书问题-连接错误

swift - UIImageJPEGRepresentation 是如何工作的?

iphone - 在 ipad 中测试 iphone 应用程序?

ios - detailTextLabel 不工作

ios - Swift AppIntent 当包含参数时总是要求确认

C 函数总是向 Objective C 返回零

ios - 如何获取在 Xcode 的背景中选择的颜色代码?

ios - 在 Info.plist CFBundleSupportedPlatforms 或 Mach-O LC_VERSION_MIN 中找不到 phantomjs 的平台系列

ios - "Missing Compliance"测试飞行

ios - 从 swift 类到协议(protocol)的转换时出错