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'
- 行之有效