折腾:
【未解决】XCode中把ArcGIS.framework换成用Cocoapods管理
期间,找到之前的同样的库:
ArcGIS.framework
的版本,貌似是10.2.5
所以换成:
pod ‘ArcGIS-Runtime-SDK-iOS’, ‘10.2.5’
结果:
可以找到,但是下载失败:
➜ inquzhou_ios git:(master) ✗ pod install
Analyzing dependencies
Downloading dependencies
Using AFNetworking (2.6.3)
Installing ArcGIS-Runtime-SDK-iOS (10.2.5)
[!] Error installing ArcGIS-Runtime-SDK-iOS
[!] /usr/bin/curl -f -L -o /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20171212-22447-13qjp5r/file.zip http://esri.box.com/shared/static/aa3e5u04sakyshphc9ooqizvyse7b8iv.zip –create-dirs –netrc-optional
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 –:–:– 0:00:01 –:–:– 0
curl: (56) Recv failure: Connection reset by peer
全局翻墙也不行。
换用其他服务器翻墙,还是不能下载。
点击:
http://esri.box.com/shared/static/aa3e5u04sakyshphc9ooqizvyse7b8iv.zip
貌似可以下载的:
-》
得到60多MB的v10.2.5-iOS.zip
解压后得到200多MB的:ArcGIS.framework
直接改个名字
file.zip
放到对应路径:
为:
再去试试
结果发现不存在该路径,且每次都是随机的路径:
/var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20171212-22620-1deifp6/file.zip
/var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20171212-22666-1ld13ps/file.zip
所以还是不行。
pod install curl 56 Recv failure Connection reset by peer
Why curl: (56) Recv failure: Connection reset by peer? · Issue #1016 · curl/curl
关闭翻墙的ss,结果:问题依旧。
“Recv failure: Connection reset by peer” error when using curl command · Issue #1095 · spray/spray
Installation for ArcGIS Runtime SDK for iOS with CocoaPods | Support Services Blog
同样问题,没人解决。
curl: (56) Recv failure: Connection reset by peer 大家怎么解决这个问题的呢? – SegmentFault
CURL ERROR: Recv failure: Connection reset by peer – PHP Curl – Stack Overflow
rest – curl: (56) Recv failure: Connection was reset – Stack Overflow
重新开启iTerm的窗口,问题依旧。
换成:10.2.4
pod ‘ArcGIS-Runtime-SDK-iOS’, ‘10.2.4’
试试:
貌似可以,但是要等半天。
结果还是:
➜ inquzhou_ios git:(master) ✗ pod install
Analyzing dependencies
Downloading dependencies
Using AFNetworking (2.6.3)
Installing ArcGIS-Runtime-SDK-iOS (10.2.4)
[!] Error installing ArcGIS-Runtime-SDK-iOS
[!] /usr/bin/curl -f -L -o /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20171212-22976-1fliasf/file.zip https://esri.box.com/shared/static/lfmcfczujdntffv9pg9l.zip –create-dirs –netrc-optional
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0
0 0 0 0 0 0 0 0 –:–:– 0:01:18 –:–:– 0curl: (7) Failed to connect to esri.app.box.com port 443: Operation timed out
先去看看还有其他哪些版本:
ArcGIS-Runtime-SDK-iOS version
ArcGIS Runtime SDK for iOS | ArcGIS for Developers
10.2.4 release of ArcGIS Runtime SDK for iOS and OS X | ArcGIS Blog
更多其他版本,结果还是要注册才能下载和看到:
Sign In | ArcGIS for Developers
http://cocoapods.org/?q=ArcGIS
-》
cocoapods.org/?q=on%3Aios%20ArcGIS
只能看到最新的
- 100.1.1
- 100.1.0
更早的看不到。
ArcGIS Runtime SDK for iOS: Introduction
ArcGIS Runtime SDK for iOS | ArcGIS for Developers
-》
10.2.5 is the previous release of the ArcGIS Runtime SDK for iOS.
Choosing the right version | ArcGIS for Developers
Release notes for 100.1.1—ArcGIS Runtime SDK for iOS | ArcGIS for Developers
所以版本好像就只是:
- 100.1.1
- 100.1.0
- 10.2.5
- 10.2.4
- 10.2
- 10.1.1
arcgis curl 56 Recv failure Connection reset by peer
->
[免费]arcgis-ios-sdk-v10.2.5(part2)-CSDN下载
arcgis ios curl Recv failure Connection reset by peer
换个WI-FI网络
问题依旧。
再去重启Mac试试,问题依旧。
ArcGIS-Runtime-SDK-iOS cocoapods
ArcGIS-Runtime-SDK-iOS on CocoaPods.org
Specs/ArcGIS-Runtime-SDK-iOS.podspec.json at master · CocoaPods/Specs
突然想起来,去试试:
pod update
或许是因为pod的仓库不是最新导致的?
如果是,那就去更新。
结果出错:
【未解决】升级CocoaPods:CocoaPods is available To update use
【总结】
所以,考虑到Cocoapods下载和安装其他库都没问题,但是对于arcgis却无法下载,就懒得继续花时间去找根本原因了。所以放弃。
目前猜测还是ArcGIS自己放在Cocoapods中的zip文件的下载权限或者哪里有问题,导致无法通过pod install去下载。
但是单独点击zip链接地址,却还是可以下载的。
另外别的也有几个人遇到同样问题,所以猜测是arcgis的问题。
转载请注明:在路上 » 【未解决】Cocoapods去pod install版本10.2.5的ArcGIS-Runtime-SDK-iOS出错:curl 56 Recv failure: Connection reset by peer