国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

iOS pod install失敗,提示CocoaPods could not find compatible versions for pod “***“

這篇具有很好參考價(jià)值的文章主要介紹了iOS pod install失敗,提示CocoaPods could not find compatible versions for pod “***“。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

1.pod install失敗

在執(zhí)行pod install的時(shí)候會(huì)失敗,提示如下:

[!] CocoaPods could not find compatible versions for pod "MJRefresh":
  In Podfile:
    MJRefresh (~> 3.5.0)

None of your spec sources contain a spec satisfying the dependency: `MJRefresh (~> 3.5.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

按提示執(zhí)行pod install --repo-update之后,還是失敗,提示:

[!] CocoaPods could not find compatible versions for pod "MJRefresh":
  In Podfile:
    MJRefresh (~> 3.5.0)

None of your spec sources contain a spec satisfying the dependency: `MJRefresh (~> 3.5.0)`.

You have either:
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

造成報(bào)錯(cuò)的原因有兩種:

  • 一、兩者的都是由于本地索引庫沒有更新到最新,找不到對(duì)應(yīng)版本的spec文件。

  • 二、第三方庫依賴的系統(tǒng)版本號(hào),高于項(xiàng)目的最低支持版本,要解決只能升級(jí)最低支持的版本或者不升級(jí)第三方庫。這就是為什么pod search成功,但pod install的原因,當(dāng)然也有可能是某個(gè)第三方庫也依賴了這個(gè)庫,不過我記得報(bào)錯(cuò)不是這樣的,會(huì)提示某個(gè)庫依賴這個(gè)庫的某個(gè)版本。

第一種按如下方法執(zhí)行:

// 以本地master的實(shí)際目錄為準(zhǔn):
cd ~/.cocoapods/repos/master
Git pull

執(zhí)行完這兩個(gè)命令之后,再執(zhí)行pod install即可,參考

不過以上方法可能比較耗時(shí),并且下載了很長(zhǎng)時(shí)間也會(huì)失敗,這里推薦你使用第三步中的方法,方便不耗時(shí)!

2.cocoapods升級(jí)

執(zhí)行:

sudo gem install cocoapods
sudo gem install -n /usr/local/bin cocoapods

3.SSL_ERROR_SYSCALL

提示:

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

主要是cocoapods下載spec文件的速度太慢,個(gè)人喜歡到下面的地址直接下載,即Podfile文件的引入源。

https://github.com/CocoaPods/Specs.git

解壓完成之后將文件命名為master, 然后打開~/.cocoapods/repos/刪除repos文件下的master,將我們下載的master文件替換進(jìn)來,打開終端執(zhí)行:

pod setup

完成之后,就可以正常執(zhí)行pod install操作了。類似下面的報(bào)錯(cuò)也可以解決:

fatal: unable to access 'https://github.com/hackiftekhar/IQKeyboardManager.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

以上方法也可以解決類似443、56、54的問題,如果不能解決參考Pod\Ruby更新提示443

4.日常更新

最近發(fā)現(xiàn)還是會(huì)有443這類的問題出現(xiàn),之前都能pod install下來的庫,現(xiàn)在升級(jí)確不行(個(gè)別庫,因?yàn)樾略龅哪躨nstall下來),一直失敗報(bào)錯(cuò),有說需要清除本地代理配置:

取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy

之后執(zhí)行pod install,正常執(zhí)行,由于升級(jí)的庫較多,只成功了一次,之后又試了一次pod install,全部更新完畢!

這里有一點(diǎn)問題,因?yàn)楸镜氐呐渲貌]有設(shè)置過代理,感覺和這個(gè)關(guān)系也不大。從實(shí)際情況來看多執(zhí)行幾次pod install就可以了,并不需要做額外的操作文章來源地址http://www.zghlxwxcb.cn/news/detail-704713.html

到了這里,關(guān)于iOS pod install失敗,提示CocoaPods could not find compatible versions for pod “***“的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 排坑日記2:Could not find MSVC/GCC/CLANG installation on this computer.

    排坑日記2:Could not find MSVC/GCC/CLANG installation on this computer.

    MAT: Mask-Aware Transformer for Large Hole Image Inpainting 在復(fù)現(xiàn)MAT時(shí),報(bào)如下錯(cuò): Could not find MSVC/GCC/CLANG installation on this computer. Check compiler_bindir_search_path list in “D:projectMAT-maintorch_utilscustom_ops.py\\\". 報(bào)錯(cuò)提示custom_ops.py: python 3.6.13 pytorch 1.10.2 cuda 11.3 cudnn 8.0 上面為主要的環(huán)境,其余根

    2024年02月17日
    瀏覽(19)
  • 【2023.4.19】重新安裝 Cocoapods 解決 pod install 卡住或者 cocoapods 依賴無法更新等問題

    【2023.4.19】重新安裝 Cocoapods 解決 pod install 卡住或者 cocoapods 依賴無法更新等問題

    做ios或flutter開發(fā)時(shí),經(jīng)常會(huì)遇到添加依賴過后pod install卡住,或者其他的一些奇奇怪怪的問題,如果花了很長(zhǎng)時(shí)間都沒有解決的話可以試試重新安裝Cocoapods,這在大多數(shù)情況下都能有所幫助 1. 打開終端 2. which pod 3. gem list 1. 檢查 gem 下載源并下載 2. 刪除 Podfile 和 Podfile.lock 3

    2024年02月10日
    瀏覽(31)
  • pip install tensorflow報(bào)錯(cuò)ERROR: Could not find a version that satisfies the requirement tensorflow (f

    pip install tensorflow報(bào)錯(cuò)ERROR: Could not find a version that satisfies the requirement tensorflow (f

    pip3 install tensorflow 輸入上述命令安裝tensorflow后出現(xiàn)下面的報(bào)錯(cuò) 直接上解決方法 先說我最終解決用的方法 pip3 install tensorflow-hub -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 指定鏡像源,使用豆瓣的鏡像源進(jìn)行下載。 還有其他的鏡像源可供使用,我第一次用的鏡像源是清

    2023年04月16日
    瀏覽(164)
  • 最新版的 MacOS Catalina 的 CocoaPods 安裝步驟 pod install/pod update 更新慢等問題

    最新版的 MacOS Catalina 的 CocoaPods 安裝步驟 pod install/pod update 更新慢等問題

    當(dāng)你開發(fā)iOS應(yīng)用時(shí),會(huì)經(jīng)常使用到很多第三方開源類庫,比如JSONKit,AFNetWorking等等。如果使 用他們,傳統(tǒng)的方法是,在git上把他們下載下來,然后去配置。這個(gè)工作很繁瑣,而且也容易出錯(cuò)。不 過有了Cocoapods你就會(huì)從這些繁瑣的工作中解脫出來。 第一步:安裝RVM RVM: Ruby

    2024年02月17日
    瀏覽(24)
  • iOS:解決Could not find a storyboard named ‘LaunchScreen.storyboard‘ in bundle NSBundle

    iOS:解決Could not find a storyboard named ‘LaunchScreen.storyboard‘ in bundle NSBundle

    打開項(xiàng)目的:HBuilder-uniPlugin-Info.plist 刪除Launch screen interface file base name 然后看圖,清空掉之前的LaunchScreen.storyboard東西 ?再運(yùn)行就可以了,我也是改自定基座出的問題略

    2024年02月12日
    瀏覽(16)
  • pip install d2l提示ERROR: Could not build wheels for pandas

    pip install d2l提示ERROR: Could not build wheels for pandas

    pip install d2l會(huì)報(bào)這個(gè)錯(cuò) 解決辦法: 另一種方法: 去d2l包的官方網(wǎng)站,然后將包下載下來,然后再在cmd窗口安裝。 d2l包的官方網(wǎng)站: https://www.cnpython.com/pypi/d2l/download ? ? ?下載到你的虛擬環(huán)境里。然后win+R打開cmd窗口,切換到你的環(huán)境路徑那里: 像我的文件下載到的路徑是

    2024年02月12日
    瀏覽(28)
  • Python pip install 安裝包報(bào)錯(cuò)ERROR: Could not find a version that satisfies the requirement XXX解決方法

    Python pip install 安裝包報(bào)錯(cuò)ERROR: Could not find a version that satisfies the requirement XXX解決方法

    使用 pip 安裝 python 包時(shí),經(jīng)常會(huì)出現(xiàn)如下錯(cuò)誤: 本次在用pip命令(pip install pdf2word)安裝pdf2docx包的時(shí)候出錯(cuò) 因?yàn)楹髞戆惭b好了,所以故意安裝一個(gè)錯(cuò)誤的pdf2word,來整個(gè)圖 可能是國內(nèi)網(wǎng)絡(luò)不穩(wěn)定,直接導(dǎo)致報(bào)錯(cuò),而不是環(huán)境沖突。報(bào)錯(cuò)信息看起來容易把人誤導(dǎo)到解決包環(huán)境

    2024年01月18日
    瀏覽(107)
  • springboot web創(chuàng)建失敗,解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom

    springboot web創(chuàng)建失敗,解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom

    jdk8不支持3.0以上的springboot版本,如果你在創(chuàng)建項(xiàng)目的時(shí)候用的是jdk8,那么我建議你在創(chuàng)建好項(xiàng)目之后自行再pom文件里降級(jí),我剛開始接觸springboot時(shí),用的是jdk11,導(dǎo)入的springboot版本是2.7.1,然后弄了差不多半天都找不到原因,然后我就擴(kuò)大了阿里云的搜索地址,自行在pom文

    2024年02月04日
    瀏覽(32)
  • 報(bào)錯(cuò)解決ValueError: did not find a match in any of xarray‘s currently installed IO backends

    報(bào)錯(cuò)解決ValueError: did not find a match in any of xarray‘s currently installed IO backends

    最近在服務(wù)器上配置環(huán)境遇到了xarray讀取nc數(shù)據(jù)的相關(guān)問題,折騰了一下午終于解決了,記錄下來,希望幫助后來人。具體報(bào)錯(cuò)如下 想要解決該問題只需要 兩步: 【1】下載相關(guān)依賴包 ??????? 可以發(fā)現(xiàn)已經(jīng)明顯提示了 缺少IO backends ,可到給出的網(wǎng)址中尋求解答。

    2024年02月02日
    瀏覽(202)
  • flutter doctor檢測(cè)環(huán)境,出現(xiàn)CocoaPods installed but not working

    flutter doctor檢測(cè)環(huán)境,出現(xiàn)CocoaPods installed but not working

    1. 安裝flutter, 地址:?安裝和環(huán)境配置 - Flutter 中文文檔 - Flutter 中文開發(fā)者網(wǎng)站 - Flutter 2. 安裝成功后,通過flutter?doctor檢測(cè)環(huán)境。以mac為例,出現(xiàn)了 CocoaPods installed but not working 錯(cuò)誤提示時(shí),以下為解決方案: 2.1? ?rvm install ruby-3.1.0, 可能出現(xiàn)依賴錯(cuò)誤問題,使用如何指令即可

    2024年02月08日
    瀏覽(23)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包