【发布时间】:2017-08-03 15:23:39
【问题描述】:
我将我的图书馆推到可可豆荚中。现在它有 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' - 效果很好
【问题讨论】:
标签: ios objective-c swift macos cocoa