首页 技术 正文
技术 2022年11月14日
0 收藏 332 点赞 3,077 浏览 2990 个字

更新时间: 2016-11-25

1.出现如下信息:

Conn keep-aliveUpdating spec repo `master`
- Data URL: https://raw.githubusercontent.com/CocoaPods/Specs/4b1928e89d6cb01905d71fcc55c7726f13d5dadb/Specs/4/a/1/XLJScreenMatchings/1.1.3/XLJScreenMatchings.podspec.json
- Log messages:
- November 24th, :: Push for `XLJScreenMatchings 1.1.' initiated.
- November 24th, :: Push for `XLJScreenMatchings 1.1.' has been pushed
(0.202071984 s).

看到这些信息又不像以前的pod trunk push成功后的信息一样。这不是重点,重点是当我搜索的时候出现如下问题:

➜  ScreenMatching git:(master) ✗ pod search XLJScreenMatchings
[!] Unable to find a pod with name, author, summary, or description matching `XLJScreenMatchings`
➜ ScreenMatching git:(master) ✗

到这里就看不懂了,搞了很久,最后发现是搜索出了问题,解决方法.

rm ~/Library/Caches/CocoaPods/search_index.json

2. cocoapod错误

问题:ERROR | [iOS] unknown: Encountered an unknown error (: unexpected token at 

解决方法:

sudo xcode-select -s /Applications/Xcode.app
更新时间:2016-11-23

1. 遇到这样的问题,解决方法是重新提交版本号:

[!] Unable to accept duplicate entry for: XLJScreenMatchings (1.0.)那么就在1..0的基础上加一下就好了
git tag 1.0.
git push --tag

2.一个删除仓库的命令:

pod repo remove [name]

3.一个更新cocoapods的命令:

sudo gem install -n /usr/local/bin cocoapods --pre

4.CocoaPod推送报错:pod trunk push –verbose

[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`

处理方法:

pod repo update --verbose

 更新时遇到此错误,处理方法。 

[!] The spec did not pass validation, due to 1 error.

[!] The validator for Swift projects uses Swift 3.0 by default, if you are using a different version of swift you can use a `.swift-version` file to set the version for your Pod. For example to use Swift 2.3, run:

`echo “2.3” > .swift-version`.

遇到上面的这种情况,直接使用下面的这条命令就可以解决问题了。
echo 3.0 > .swift-version
//下面这种方法只适合于pod没有更新的情况下.
sudo gem install -n /usr/local/bin cocoapods

又出现新的错误

<!–
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px ‘Andale Mono’; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px ‘Andale Mono’; color: #c33720; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
–>

opening connection to trunk.cocoapods.org:443…

[!] There was an error pushing a new version to trunk: getaddrinfo: nodename nor servname provided, or not known

 我的做法是重新提交了版本号,但是感觉如果不重新提交也应该没有问题的。

git tag 1.0.
git push --tag

提到了需要进行更新:

pod repo update --verbose 

<!–
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px ‘Andale Mono’; color: #c33720; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
–>

[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update –verbose`

依次做完后,报上面的错误。

我的做法是重启了电脑,重新将代码提交一次,再次进行。最后成功了,但是这不能说明什么,只是我个人的情况。放在是希望对跟我遇到类似问题的人一些帮助。

pod trunk push --verbose

搜索可以看到:

-> XLJNewFeature (1.0.)
一行代码实现新特性功能
pod 'XLJNewFeature', '~> 1.0.2'
- Homepage: https://github.com/marlonxlj/newFeaturesx
- Source: https://github.com/marlonxlj/newFeaturesx.git
- Versions: 1.0., 1.0., 1.0. [master repo]
(END)

Email:marlonxlj@163.com

<!–
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px ‘Andale Mono’; color: #c33720; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
–>

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,077
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,552
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,401
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,176
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,813
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,896