1、pod search xxx 报错,错误信息如下:

pod search SYLogManager

Creating search index for spec repo 'cocoapods'.. Done!

[!] CDN: trunk Repo update failed - 3 error(s):

CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/6/1/0/CrashLogManager/0.1.0/CrashLogManager.podspec.json, error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)

CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/6/1/0/CrashLogManager/0.1.1/CrashLogManager.podspec.json, error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)

CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/6/1/0/CrashLogManager/0.1.2/CrashLogManager.podspec.json, error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)

解决:移除操作 pod repo remove trunk —— 搜索操作 pod search

20190101

1、file patterns: The `source_files` pattern did not match any file.

解决:检查你.podspec文件中s.source_files路径有没有填错。
源文件所在目录名称与xx.podspec文件保持同名,且在同一个层级。


2、file patterns: The `public_header_files` pattern did not match any file.
解决:检查你.podspec文件中public_header_files路径有没有填错
源文件所在目录名称与xx.podspec文件保持同名,且在同一个层级。


3、[!] You need to register a session first.
解决:第一次使用时需要注册
(1)注册命令:

pod trunk register xxx@xxx.com 'yourname' --description='iMac' --verbose

(2)查看邮箱验证
(3)查看命令:

pod trunk me


4、[!] 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


5、[!] Unable to find a pod with name, author, summary, or description matching `CocoapodSpecDemo`
解决:
(1)删除缓存:

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

(2)再重输入搜索:

pod search xxxx


6、初次创建私有库时,如果没有创建LICENSE文件,则会造成执行"pod trunk push xxxx"命令时出错。
解决:在github的项目中,后续创建LICENSE文件。

创建方法:进入github项目-选择<>code-Create new file-Name your file(LICENSE)-choose a license(MIT license)-Commit new file

7、使用pod lib lint ,或pod spec lint 进行校验文件时报错
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- ERROR | xcodebuild:  /Users/zhangshaoyu/Library/Developer/Xcode/DerivedData/App-cojazwchykrvonefhcdkwuhxckoo/Build/Products/Release-iphonesimulator/SYImageBrowser/SYImageBrowser.framework/Headers/SYImageBrowseHelper.h:17:9: error: include of non-modular header inside framework module 'SYImageBrowser.SYImageBrowseHelper' [-Werror,-Wnon-modular-include-in-framework-module]
解决:自建的私有库项目中有第三方依赖库,且在.h文件中做了#import引入,改成在.m文件中#import引用即可。

https://github.com/potato512/CocoapodSpecDemo/tree/master/Help201912261、pod search xxx 报错,错误信息如下:pod search SYLogManagerCreating search index for spec repo 'cocoapods'.. Done![!] CDN: tru...
问题 描述: 在 使用 cocoapods 上传自己的 时,执行命令:pod trunk push  test.podspec 命令报错: 'Source code for your Pod was not accessible to CocoaPods Trunk. Is it a private repo or behind a us 解决 方案:将spec 文件 的 source 地址, 使用
gem sources --removehttps://rubygems.org/ gem sources --addhttps://gems.ruby-china.com/ 为了验证你的Ruby镜像是并且仅是ruby-china,执行以下命令查看 gem sources -l 如果是以下结果说明正确,如果有其他的请自行百度 解决 *** CURRENT SOURCES ***https://gems.ruby-china.com/ 检查更新ruby环境 sudo gem update...
在开发时,我们 使用 cocoapods 来集成三方SDK,避免依赖 的引入和管理,简化集成。但是我们在 使用 的过程会遇到不少坑爹的 问题 ,今天和大家分享一下pod search 搜索失败的 解决 办法。在执行 pod search AFNetwroking时,出现如下情况: Unable to find a pod with name, author, summary, or description mat
上传自己的 Cocoapods 注册trunk先执行以下2句指令:sudo gem install cocoapods pod trunk register myw_720@163.com 'Yawei-Maa' --verbose 解释下,第一个指令是更新 Cocoapods 版本,它会升级到目前最新的正式版;第二个指令是注册一个邮箱 和用户名,建议和 github 上注册的保持一致。之后到注册的邮箱
首先升级Ruby环境,终端输入:gem update --system,会出现两种情况, 1,Latest version already installed. Done. 说明已经最新 2,没权限升级Ruby的提示,这是因为你没有权限去升级Ruby 这时应该输入:$sudo gem update --system 会出现 需要输入密码,也即是你的开机密码,注意:输入密码的时候没...
第二步,注册trunk最好账户和邮箱和 github 账户和绑定邮箱一致,代码如下 端口输入:pod trunk register xxxxxx@qq.com '账户名' --verbose 回车 第三步,去你上一步... 学会 使用 别人的 Pods 依赖 以后, 你一定对 创建 自己的依赖 很有兴趣吧,现在我们就来尝试一下,以一个简单 O2View 为例自己 创建 一个 Pods 依赖 ,这里我会 使用 Swift 2.0 来写这个例子。 1. 创建 自己的 github CocoaPods 是托管在 github 上的,所有的 cocoapods < Failed to connect to GitHub to update the CocoaPods /Specs specs repo - Please check if you are offline, or that GitHub is down> 解决 办法: 方法一:优先尝试此方法 每次需要更新你的repo时,将老版本的rep CSDN-Ada助手: 嗨~好久未见你更新博文了,我们现在上线了AI创作助手哦~可为你的创作提供智能化帮助,快来试试吧~https://editor.csdn.net/md/?not_checkout=1&utmsource=blog_comment_recall,在编辑器页面右侧哦~~限免!! 同时我们为您准备了一份回归奖励,快来看看吧https://activity.csdn.net/creatActivity?id=10430&utmsource=blog_comment_recall UICollectionViewCell自适应宽度 chenyonghua521: button类没有,textModel类没有,跑不起来呢 SceneDelegate有什么作用?删除有什么影响 丿独行丶: 在AppDelegate.h中加入 [code=objc] @property (strong, nonatomic) UIWindow *window; [/code]