iOS常見問題總結(jié)

1,This app could not be installed at this time.
1.點(diǎn)擊模擬器: 
選擇: 
Hardware -> Erase All content and settings;清空模擬器的緩存 
2.點(diǎn)擊項(xiàng)目: 
把項(xiàng)目清一下 
shift+cmd+K 
shift+opt+cmd+K 
3.重新運(yùn)行就OK
2,cocoapods發(fā)布命令

##########私有:

//驗(yàn)證
pod spec lint xxx.podspec --allow-warnings --verbose --use-libraries --sources='git@gitlab.xxx.com:xxx.git,https://github.com/CocoaPods/Specs'
//推送修改
pod repo push xxx --allow-warnings  --verbose --use-libraries 
//第一次添加庫
pod repo add xxx  https://xxxx.git

##########公共:

   //驗(yàn)證
  pod spec lint xxx.podspec --allow-warnings  --verbose --use-libraries
  //發(fā)布
  pod trunk push xxx.podspec --allow-warnings  --verbose --use-libraries
   //添加到本地pod和遠(yuǎn)程對應(yīng)(第一次)
   pod repo add xxx git@xxx.git 

##########私有庫制作:

       1. 本地倉庫路徑------> cd ~/.cocoapods/repos
       2. 添加遠(yuǎn)程索引庫----> pod repo add  xxx  git.xxx.git
       3. 創(chuàng)建庫模板demo---> pod lib create  xxx

//找不到庫?
rm ~/Library/Caches/CocoaPods/search_index.json

pod update --no-repo-update 更新

3, 靜態(tài)庫沒法使用 use_frameworks! 標(biāo)記

pod報(bào)錯(cuò): target has transitive dependencies that include static binaries

參考:http://www.itdecent.cn/p/7f6a7e1b3235

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容