使用cocoapods install友盟时报错Error installing UMengAnalytics
2015-06-12 13:22
585 查看
报错:
[!] /usr/bin/unzip /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip -d /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics
Archive: /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip or
/Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip.zip, and cannot find /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip.ZIP, period.
检查你的cocoapods是不是最新的.如果你在分析的时候提示你
Analyzing dependencies
CocoaPods 0.37.2 is available.
To update use: `gem install cocoapods`
先更新一下你的cocoapods.(如果单纯的按照提示执行 gem instakk cocoapods 会报错While executing gem ... (Gem::FilePermissionError)You don't have write permissions for
the /Library/Ruby/Gems/2.0.0 directory.,具体查看这篇文章: http://blog.csdn.net/soindy/article/details/46470463 ) 执行sudo gem instakk cocoapods
然后你会报错:
[!] Error installing UMengAnalytics
[!] /usr/bin/curl -f -L -o /var/folders/0m/7s1flm9j03d35pkr92jcsv3w0000gn/T/d20150612-2631-6dgqct/file.zip http://dev.umeng.com/system/resources/W1siZiIsIjIwMTUvMDUvMTEvMTZfMDJfMTdfNjM3X3Vtc2RrX0lPU19hbmFseXRpY3NfaWRmYV92My41LjguemlwIl1d/umsdk_IOS_analytics_idfa_v3.5.8.zip --create-dirs
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found
这个不是网络的问题就是友盟的问题
: http://bbs.umeng.com/thread-9178-1-1.html 着急的可以直接下载静态库放本地.
[!] /usr/bin/unzip /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip -d /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics
Archive: /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip or
/Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip.zip, and cannot find /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file.zip.ZIP, period.
检查你的cocoapods是不是最新的.如果你在分析的时候提示你
Analyzing dependencies
CocoaPods 0.37.2 is available.
To update use: `gem install cocoapods`
先更新一下你的cocoapods.(如果单纯的按照提示执行 gem instakk cocoapods 会报错While executing gem ... (Gem::FilePermissionError)You don't have write permissions for
the /Library/Ruby/Gems/2.0.0 directory.,具体查看这篇文章: http://blog.csdn.net/soindy/article/details/46470463 ) 执行sudo gem instakk cocoapods
然后你会报错:
[!] Error installing UMengAnalytics
[!] /usr/bin/curl -f -L -o /var/folders/0m/7s1flm9j03d35pkr92jcsv3w0000gn/T/d20150612-2631-6dgqct/file.zip http://dev.umeng.com/system/resources/W1siZiIsIjIwMTUvMDUvMTEvMTZfMDJfMTdfNjM3X3Vtc2RrX0lPU19hbmFseXRpY3NfaWRmYV92My41LjguemlwIl1d/umsdk_IOS_analytics_idfa_v3.5.8.zip --create-dirs
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found
这个不是网络的问题就是友盟的问题
: http://bbs.umeng.com/thread-9178-1-1.html 着急的可以直接下载静态库放本地.
相关文章推荐
- 使用VS2012建立Web测试
- Notification与多线程
- Xcode使用版本
- freemarker 基础
- JavaScript-demo
- A *p=new B;
- 计算器算法的简单实现
- java中的内部类
- Ubuntu 14.04 LTS 下使用校园网客户端DrclientLinux
- 管理SQL2005数据库文件
- win 任务计划
- 将博客搬至CSDN
- 我的第一个原创博客来啦
- IOS之NSTimer不一般
- 浅谈协方差矩阵
- Mysql 循环插入数量级数据 供大数据测试
- php curl
- skimage.io.imread vs caffe.io.load_image
- Moq4在.NET3.5和.NET4版本之间的差异
- sublime 12个不错的使用技巧