cocoapods 备忘录

2019-01-30  本文已影响0人  liyoucheng2014
  1. 安装cocoapods
    sudo gem install cocoapods

  2. 搜索仓库
    pod search AFNetworking

出现错误

解决方案:
a. 执行:rm ~/Library/Caches/CocoaPods/search_index.json
b. pod search AFNetworking

  1. 添加私有仓库
    pod repo add 仓库名字 私有仓库地址

  2. 创建项目及配置脚本
    a. 创建项目
    b. 配置脚本 ./config.sh

  3. 提交及发布
    git add .
    git commit -m "提示信息"
    git tag 标签
    git push origin master --tags
    ./upload.sh

报错


验证仓库

解决方案:
去xcode设置里面,将Command line Tools设置一下,在Xcode>preferences>Locations里面,设置之后再运行终端即可

  1. 其它操作
    git pull --rebase origin master
    git push --setupstream origin master

ssh-keygen -t rsa -C "邮箱地址" -b 4096

上一篇 下一篇

猜你喜欢

热点阅读