1. cocopod
新建
init pod
打開編輯
open -a xcode podfile
加載
pod install --verbose --no-repo-update
執(zhí)行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
解決方法:
執(zhí)行:
命令更新資源庫即可谎势。
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
- 搜索app,xx表示APP名稱
brew search xx --cask
- 安裝app
brew install xx --cask