1

这是我在安装 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"
4

1 回答 1

6

这是最小更改分支中的一个错误。该swift-2.0-beta5分支将起作用,尽管它可能需要在您的项目中进行更多更改。我会修复中的错误minimal-changes

编辑:固定:https ://github.com/mxcl/PromiseKit/commit/d969c72b9f959d7fb5a68f117142c79bf0c3098d

于 2015-08-16T18:31:12.583 回答