CocoaPods - 使用Xcode-beta编译iOS 9/Swift 2

问题描述:

我有一个目前版本为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?

您可以在Xcode首选项“位置”选项卡中轻松更改命令行工具版本,并将“命令行工具”更改为Xcode 7.0。

这应该用“pod lib lint”来实现。 Command Line Tools

+0

如果您想要链接到屏幕截图,我们可以为您编辑。 –

+0

很好的答案,谢谢 –