我正在从3.1.5迁移到4.0.1我正在使用podspec创建我自己的库,使用Xcode 8.0和cocoapods 1.1.1,但是当我更新到这个版本时,我收到此错误
[!] Unable to satisfy the following requirements:
- `ExpSwift (from `../`)` required by `Podfile`
- `ExpSwift (from `../`)` required by `Podfile`
Specs satisfying the `ExpSwift (from `../`)` dependency were found, but they required a higher minimum deployment target.
我确实将部署目标更新为10.0但是我得到了同样的错误。我是否需要更新其他内容,此处为我们的podspec和podfile
s.platform = :ios, '10.0'
s.requires_arc = true
s.source_files = 'Pod/Classes/**/*'
#s.resource_bundles = {
# 'ExpSwift' => ['Pod/Assets/*.png']
#}
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
s.dependency 'PromiseKit','4.0'
s.dependency 'Alamofire','4.0.0'
s.dependency 'Socket.IO-Client-Swift','8.0.2'
s.dependency 'JSONWebToken','2.0.1'
端
我的podfile只是引用我的本地pod
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
platform :ios, '9.0'
target 'ExpSwift_Example' do
pod "ExpSwift", :path => "../"
end
target 'ExpSwift_Tests' do
pod "ExpSwift", :path => "../"
end