将 SwiftLint 0.16.1 更新到 SwiftLint 0.18.1 时,我得到:
/Users/coeur/Library/Developer/Xcode/DerivedData/MyApp-7-eloayqptodupvfhbyegtkncnhcpu/Build/Intermediates/MyApp-7.build/UAT-iphonesimulator/MyApp-7-Debug.build/Script-379156A71D62F5C100574D04.sh:第2行: 30296 非法指令:4 "${PODS_ROOT}/SwiftLint/swiftlint" 命令 /bin/sh 失败,退出代码为 132
DerivedData 是干净的。
使用 Xcode 8.3.1、CocoaPods 1.2.1、Swift 3.1。
我的.swiftlint.yml:
# Find all the available rules by running:
# swiftlint rules
excluded:
- Carthage
- Pods
disabled_rules:
- todo
- line_length
opt_in_rules:
- empty_count
trailing_whitespace:
ignores_empty_lines: true
ignores_comments: true
large_tuple: warning: 3
type_name: max_length: warning: 42
variable_name: min_length: warning: 1