我在 ios 方面比較新,尤其是可可豆莢。我遇到了一個問題,不知何故 IgListKit 依賴項是不可匯入的,我已經清理構建,構建 1st 然后添加匯入,甚至洗掉 xcworkplace 并通過執行添加一個新的pod install
我如何解決它?這是 Pod 內的問題嗎?我應該提交錯誤嗎?謝謝
我如何添加依賴項:
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
target 'LearnViper' do
pod 'Alamofire', '~> 5.4'
pod 'RxSwift', '6.2.0'
pod 'RxCocoa', '6.2.0'
pod 'Kingfisher', '~> 7.0'
pod 'SkeletonView'
pod 'IGListKit', '~> 4.0.0'
end

uj5u.com熱心網友回復:
你必須先用命令更新你的 gem 檔案
sudo gem install -n /usr/local/bin cocoapods
然后在打開 podfile 之后添加 pods 并安裝
uj5u.com熱心網友回復:
看起來你所要做的就是添加
use_frameworks!你的 pod 檔案
uj5u.com熱心網友回復:
platform :ios, '12.0'
target 'LearnViper' do
use_frameworks!
pod 'Alamofire', '~> 5.4'
pod 'RxSwift', '6.2.0'
pod 'RxCocoa', '6.2.0'
pod 'Kingfisher', '~> 7.0'
pod 'SkeletonView'
pod 'IGListKit', '~> 4.0.0'
end
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/338927.html
上一篇:獲取與陣列分離的元素
