8

現在バージョン 1.1 の「CocoaPod」(用語?) があります。

次のように、PodSpec を使用して Swift 2.0 を必要とするリポジトリの開発ブランチもあります (したがって、IOS 9.0 のベース SDK が必要です)。

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' => 'ashleymills@mac.com'
  }
  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

PodSpec はpod spec lintXcode 8.3 を使用してビルドされているため、検証に失敗します ( )。最新の Xcode-beta を強制的に使用するにはどうすればよいですか?

4

1 に答える 1

13

Xcode 環境設定の [場所] タブでコマンド ライン ツールのバージョンを簡単に変更し、[コマンド ライン ツール] を Xcode 7.0 に変更できます。

これは、「pod lib lint」でうまくいくはずです。 コマンド ライン ツール

于 2015-06-14T16:22:39.393 に答える