Ho un "CocoaPod" (terminologia?) Che è attualmente alla versione 1.1.CocoaPods - build per iOS 9/Swift 2 con Xcode-beta
C'è anche un sviluppare ramo del pronti contro termine che richiede Swift 2.0 (quindi ha bisogno di uno SDK di base di IOS 9.0) con un PodSpec come segue:
Pod::Spec.new do |s|
s.name = 'ReachabilitySwift'
s.version = '2.0-beta1'
s.homepage = 'https://github.com/ashleymills/Reachability.swift'
s.authors = {
'Ashley Mills' => '[email protected]'
}
s.summary = 'Replacement for Apple\'s Reachability re-written in Swift with callbacks.'
s.license = { :type => 'MIT' }
# Source Info
s.ios.platform = :ios, "9.0"
s.osx.platform = :osx, "10.11"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"
s.source = {
:git => 'https://github.com/ashleymills/Reachability.swift.git',
:branch => 'develop',
:tag => 'v'+s.version.to_s
}
s.source_files = 'Reachability.swift'
s.framework = 'SystemConfiguration'
s.requires_arc = true
end
La PodSpec non riesce a convalidare (pod spec lint
) come costruisce usando Xcode 8.3. Come faccio a forzare l'uso dell'ultima Xcode-beta?
Se desideri pubblicare un collegamento a uno screenshot, possiamo modificare per te. –
Ottima risposta, grazie –