Cocoapods私有庫(kù)報(bào)錯(cuò)處理An unexpected version directory `Classes`

當(dāng)你創(chuàng)建好私有庫(kù),提交好后,本地索引做好。
但是當(dāng)你pod search name或者pod install時(shí)候報(bào)錯(cuò)

Analyzing dependencies
[!] An unexpected version directory `Classes` was encountered for the `/Users/Zapper/.cocoapods/repos/Foobar/Foobar` Pod in the `Foobar` repository.

搜了網(wǎng)上一大堆解決方案,都不是真正的辦法,原因是你podfile里配置問(wèn)題

  • 錯(cuò)誤事例:
# Uncomment the next line to define a global platform for your project
 platform :ios, '9.0'

source 'https://gitee.com/paoche/ywchainable-animations.git'
source 'https://github.com/CocoaPods/Specs.git'

target 'ceshi' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

pod 'YWChainableAnimations'
pod 'SDWebImage'
  # Pods for ceshi

  target 'ceshiTests' do
    inherit! :search_paths
    # Pods for testing

  end

  target 'ceshiUITests' do
    # Pods for testing
  end

end

  • 正確事例:
# Uncomment the next line to define a global platform for your project
 platform :ios, '9.0'

#source 'https://gitee.com/paoche/ywchainable-animations.git'
#source 'https://github.com/CocoaPods/Specs.git'

target 'ceshi' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

pod 'YWChainableAnimations', :git => "https://gitee.com/paoche/ywchainable-animations.git", :tag => '1.0.0'
pod 'SDWebImage'
  # Pods for ceshi

  target 'ceshiTests' do
    inherit! :search_paths
    # Pods for testing

  end

  target 'ceshiUITests' do
    # Pods for testing
  end

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

相關(guān)閱讀更多精彩內(nèi)容

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