2015-06-12 37 views
8

我有一個目前版本爲1.1的「CocoaPod」(術語?)。CocoaPods - 使用Xcode-beta編譯iOS 9/Swift 2

還有一個開發需要夫特2.0回購的分支(所以需要IOS 9.0的基SDK)與PodSpec如下:

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 

的PodSpec無法驗證(pod spec lint)作爲它使用Xcode 8.3構建。我如何強制它使用最新的Xcode-beta?

回答

13

您可以在Xcode首選項「位置」選項卡中輕鬆更改命令行工具版本,並將「命令行工具」更改爲Xcode 7.0。

這應該用「pod lib lint」來實現。 Command Line Tools

+0

如果您想要鏈接到屏幕截圖,我們可以爲您編輯。 –

+0

很好的答案,謝謝 –