podspec文件push到遇到的第一个问题,将进行记录,主要是参考了下面大神的解决方案,主要是为了方便学习和记录 第一个问题: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun ) during validation. 解决方案: 在终端输入下面…
用 pod trunk push --verbose  添加一个 pod 的时候,经常出现如下的错误 [!] The podspec does not validate. /Library/Ruby/Gems/2.0.0/gems/cocoapods-trunk-0.6.4/lib/pod/command/trunk/push.rb:114:in `validate_podspec' /Library/Ruby/Gems/2.0.0/gems/cocoapods-trunk-0.6.4/lib/…
idea中,发布项目到OSChina的Git中,当时按照这样的流程添加Git,然后push,提示:push to origin/master war rejected". 解决方案如下: 1.切换到自己项目所在的目录,右键选择GIT BASH Here 2.在terminl窗口中依次输入命令: git pull git pull origin master git pull origin master --allow-unrelated-histories 3.在idea中重新push自己的项目…
版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/a137151062/article/details/78820806idea中,发布项目到OSChina的Git中,当时按照这样的流程添加Git,然后push,提示:push to origin/master war rejected". 解决方案如下: 1.切换到自己项目所在的目录,右键选择GIT BASH Here,Idea中可使用Alt+F12 2.在terminl窗口中依次输入命令: gi…
相信大家已经感受到pod install速度越来越慢了,网上提供了几种解决方案,但是都没有完全解决速度慢的问题. 使用国内镜像的Specs 在pod install时使用命令pod install --no-repo-update 使用proxychains使终端命令走代理 下面就来说明一下这几种方法为何没有完全解决问题 使用国内镜像的Specs 这个只是加快了Specs下载更新速度,而且如果使用国内镜像Specs,那么Podfile中就必须指明使用这个Specs. 在pod install时使…
解决方案如下: 1.切换到自己项目所在的目录,右键选择GIT BASH Here,Idea中可使用Alt+F12 2.在terminl窗口中依次输入命令: git pull git pull origin master git pull origin master --allow-unrelated-histories 3.在idea中重新push自己的项目,成功!!! 如果还不行: git push -u origin master -f…
在IDEA中配置码云的URL,如下图 切换到自己项目所在的目录,右键选择GIT BASH Here 在terminl窗口中依次输入命令: git pull git pull origin master git pull origin master --allow-unrelated-histories 在idea中重新push自己的项目,即可成功push.…
前言 找了这么长时间,再次开始去尝试Cocoapods了.前面已经写过一篇关于如何把自己的Github上的代码库添加Cocoapods支持.现在就让我们看一下如果搭建私有的Spec吧. 之所以构建私有Spec,是因为公司的好多东西都是通用的,有的时候也许其他的项目中也要用到,所以最好的方式就是把它构建成库,直接 pod install 就能构建到项目中来.但是按照前面说的显然是不行的,如果直接放到https://github.com/CocoaPods/Specs.git 上,那么所有人都能下载…
http://www.jianshu.com/p/7a82e977281c http://www.jianshu.com/p/ddc2490bff9f 两个工程 1 代码工程 在github上创建一个空的工程,  License文件记得加上. (MIT License) git clone到本地 或 用 sourcetree 下载到本地. 1.1 在代码工程中添加所需要代码, 并生成spec文件, 注意在sourcetree加tag.(加tag后, 要再提交一个东西, 不然这个tag找不到??)…
Private Pods CocoaPods is a great tool not only for adding open source code to your project, but also for sharing components across projects. You can use a private Spec Repo to do this. There are a few steps to getting a private pods setup for your p…