简体   繁体   English

AWS iOS SDK崩溃并带有迦太基2.5.8版更新

[英]AWS iOS SDK crashing with carthage update for version 2.5.8

I have been working on a project that requires access to the github repository aws/aws-sdk-ios for some time now and make use of many of its features. 我一直在从事一个需要访问github存储库aws / aws-sdk-ios的项目,已有一段时间,并且需要利用它的许多功能。

Recently, when trying to build the project in Swift, I have been getting the following build failure: 最近,当尝试在Swift中构建项目时,出现以下构建失败:

Use of unresolved identifier AWSBasicCredentialsProvider 使用未解析的标识符AWSBasicCredentialsProvider

The code has remain unchanged from when it was working previously, save a few completely unrelated changes for the Mapbox features I also use for the project. 该代码与之前的工作方式相同,只是为我也用于该项目的Mapbox功能保存了一些完全不相关的更改。 Deciding it was most probably an issue with my version of the aws sdk for ios, I typed the following commands in the terminal: 确定这很可能是我的适用于ios的aws sdk版本的问题,我在终端中键入了以下命令:

rm -rf ~/Library/Caches/org.*.CarthageKit
rm -rf Carthage
carthage update --platform ios

The resulting output is: 结果输出为:

A shell task (/usr/bin/env git checkout --quiet --force 2.5.8) failed with exit code 1: Shell任务(/ usr / bin / env git checkout --quiet --force 2.5.8)失败,退出代码为1:

error: pathspec '2.5.8' did not match any file(s) known to git 错误:pathspec'2.5.8'与git已知的任何文件都不匹配

Does anyone know how to resolve this issue? 有谁知道如何解决这个问题? All help is greatly appreciated! 非常感谢所有帮助!

For reference, my Cartfile is as follows: 供参考,我的Cartfile如下:

github "SwiftyBeaver/SwiftyBeaver"
github "Mapbox/mapbox-navigation-ios"
github "Mapbox/MapboxDirections.swift"
github "Mapbox/MapboxGeocoder.swift"
github "aws/aws-sdk-ios"

The Cartfile.resolved file has the content as follows: Cartfile.resolved文件的内容如下:

 github "52inc/Pulley" "1.4" github "Mapbox/MapboxDirections.swift" "v0.9.1" github "Mapbox/MapboxGeocoder.swift" "v0.6.2" github "Mapbox/mapbox-navigation-ios" "v0.4.0" github "Project-OSRM/osrm-text-instructions.swift" "v0.1.2" github "SwiftyBeaver/SwiftyBeaver" "1.2.2" github "aws/aws-sdk-ios" "2.4.3" github "frederoni/aws-sdk-ios" "1a8432b03c22326fb7ed86fac978212106e2d465" github "raphaelmor/Polyline" "v4.1.1" github "rs/SDWebImage" "4.0.0" 

One of your dependencies 您的依赖之一

"Mapbox/mapbox-navigation-ios" “Mapbox / mapbox导航-IOS”

depends on a different version of aws-sdk-ios 取决于aws-sdk-ios的不同版本

Look here: https://github.com/mapbox/mapbox-navigation-ios/blob/master/Cartfile 看这里: https : //github.com/mapbox/mapbox-navigation-ios/blob/master/Cartfile

Clearly, this is a namespace issue which causes carthage update failures. 显然,这是一个导致迦太基更新失败的名称空间问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM