mac命令


1. cocopod

新建

init pod

打开编辑

open -a xcode podfile

加载

pod install --verbose --no-repo-update

执行pod install时,提示如下信息:

The version of CocoaPods used to generate the lockfile (1.2.0.beta.1) is higher than the version of the current executable (1.1.1). Incompatibility issues may arise
解决方法:

执行:
命令更新资源库即可。

pod repo update

注册 不要bb 表示注册过,登录

pod trunk register aa@qq.com bb

新建

pod lib create AXiOSKit

验证

pod spec lint AXFoundation.podspec --allow-warnings

推送

pod trunk push AXiOSKit.podspec --allow-warnings

cocopod 本地查找路径

find ~/.cocoapods/repos/master -iname xxx

进入对应的文件夹用以下命令

find gitee -iname xxx

或者

find Specs -iname xxx

删除本地搜索库

rm ~/Library/Caches/CocoaPods/search_index.json
sudo xattr -rd com.apple.quarantine /Applications/CleanMyMacX.app

2. homebrew

1. brew cask 拓展 安装mac app

  1. 搜索app,xx表示APP名称
brew search xx --cask
  1. 安装app
brew install xx --cask
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • pod lib create PrivateLib myConfig 命令创建一个待上传的Lib模版 git re...
    西红柿炒鸟蛋阅读 3,372评论 0 3
  • 首先:cd 项目touch Podfile一个文件vim Podfile进入Podfile文件在Podfile文件...
    西贝人立口阅读 3,616评论 0 0
  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 175,270评论 25 709
  • 【16】 你喜欢听这段,特别是夏萱。你能感受到你爱她,所以你想知道她的消息。你问我,我和夏萱的初遇,我只记得一句话...
    秦小川阅读 1,618评论 0 0
  • 奶奶住在我们家楼下旁边的平房里。她不是我的奶奶,我从来没问过她姓什么,只知道她和她丈夫住在这儿很久了。她丈夫...
    梦中客的轮回阅读 3,490评论 2 3