1

I'm attempting to use the Quick/Nimble testing framework in the iOS application at work. When I build my xcworkspace project I get all the errors in the image below. All these errors are within the Pods.xcodeproj in Pods/Nimble folder.

I'm using Swift 3, Xcode 8.0, Cocoapods 1.1.1, fastlane 1.10.5, Nimble 5.1.1, Quick 0.10.0, and Swiftlint. Are these errors caused by Swiftlint, Swift 3, or something else?

enter image description here

4

1 回答 1

1

为了禁止 Swiftlint 检查 Pods 文件夹,我将此代码添加到.swiftlint.yml文件中:

excluded: # paths to ignore during linting. Takes precedence over `included`.
  - Pods

这解决了我的问题,因为错误阻止了我构建项目。该.swiftlint.yml文件与您的 Xcode 项目文件夹处于同一级别。

我假设您使用 Cocoapods 添加了 Quick 和 Nimble。如果不是,您可能必须添加一个不同的文件夹/项目来排除。

于 2016-11-16T23:37:30.617 回答