gpt4 book ai didi

ios - Alamofire 和 Swift 3 的更新

转载 作者:搜寻专家 更新时间:2023-11-01 06:05:12 24 4
gpt4 key购买 nike

我刚刚更新到 Xcode 8 和 Alamofire 4.0,我遇到了一些奇怪的错误。第一个是一堆错误,如下所示:

... warning: Missing file: ... is missing from working copy

这适用于 Download.swift、Manager.swift、Stream.swift、Upload.swift 和 Error.swift。如何解决这个问题?

此外,我得到了这个,只用于 alamofire,不用于我的任何其他库:

“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

当我尝试转换它时,我得到了

Could not find test host for FieldSenseAppTests: TEST_HOST evaluates to ..."

最佳答案

我可以通过在 Build Setting 部分将 Use Legacy Swift Language Version 设置为“No”来修复它。

enter image description here

关于ios - Alamofire 和 Swift 3 的更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39528674/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com