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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容