2017-08-03 100 views
0

我把我的庫推到可可豆莢上。現在,它具有1.0.1版本:可可豆莢如果安裝沒有版本,它安裝舊包

pod spec lint USBDeviceSwift.podspec 
pod trunk push USBDeviceSwift.podspec 

一切正常,但如果我安裝它,而不版本:

# Uncomment the next line to define a global platform for your project 
# platform :ios, '9.0' 

target 'testusb' do 
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 

    # Pods for testusb 

    pod 'USBDeviceSwift' 

end 

它安裝包老0.0.1。如果我試圖再次推它,我得到:

[!] Unable to accept duplicate entry for: USBDeviceSwift (1.0.1)

'USBDeviceSwift', '~>1.0.1' - 行之有效

回答

1

這不是你的podspec的問題,但你如何在你的例子項目中使用它。頒發pod install不會升級先前安裝的窗格的版本。而在Podfile.lock中保存的版本會再次被下拉。如果你想升級你的豆莢,你應該明確地使用pod update [USBDeviceSwift]