Ich habe eine "CocoaPod" (Terminologie?), Die derzeit in der Version 1.1 ist.CocoaPods - Build für iOS 9/Swift 2 mit Xcode-beta
Es gibt auch eine Zweig des repo entwickeln, die Swift erfordert 2.0 (muss so eine Basis SDK von IOS 9.0) mit einem PodSpec wie folgt:
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
Die PodSpec nicht zu validieren (pod spec lint
) als Es baut mit Xcode 8.3. Wie zwinge ich die neueste Xcode-Beta?
Wenn Sie stattdessen einen Link zu einem Screenshot veröffentlichen möchten, können wir für Sie bearbeiten. –
Große Antwort, danke –