PromiseKit 无法使用 Swift 2 和 Xcode 7 进行编译

PromiseKit doesn't compile with Swift 2 and Xcode 7

这是我在安装 PromiseKit 后尝试构建项目时看到的错误。

Cannot import module being compiled.

这是我的 PodFile 包含的用于安装 PromiseKit 的内容。

pod 'PromiseKit', :git => 'https://github.com/mxcl/PromiseKit.git', :branch => 'swift-2.0-minimal-changes'

我尝试在 PodFile 中使用以下语句,但它引发了更多的编译错误,所以我尝试了上面的语句。

pod "PromiseKit", "~> 2.0"

这是 minimal-changes 分支中的错误。 swift-2.0-beta5 分支将起作用,但它可能需要对您的项目进行更多更改。我会修复 minimal-changes 中的错误。

编辑:修正:https://github.com/mxcl/PromiseKit/commit/d969c72b9f959d7fb5a68f117142c79bf0c3098d