組件化:
1撞牢、初始子模塊
初始化指令:pod lib create NetModule
2、關(guān)聯(lián)主項(xiàng)目:
Podfile文件添加相關(guān)路徑:
pod 'NetModule', :path => './SubModule/NetModule'
3矩动、遠(yuǎn)端git倉庫,創(chuàng)建子模塊
4释漆、同步git本地子模塊與遠(yuǎn)端子模塊倉庫
git remote add origin https://gitxxxxxx.com/xxxx/netmodule.git
cocoapods事項(xiàng)
解決CocoaPods 重復(fù)生成 UUID
install! 'cocoapods', :deterministic_uuids => false
pod資源遠(yuǎn)端指定
Podfile文件頂部添加
source 'https://github.com/CocoaPods/Specs.git'
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
source 'git@git.xxxxx/自己的倉庫.git'
適配開發(fā)環(huán)境
pod 'MLeaksFinder', :git => "https://github.com/Tencent/MLeaksFinder.git", :configurations => ['Debug']