SMCKit
SMCKit copied to clipboard
Xcode 7 Beta 1: Compiler regression - "Expression was too complex..."
See test case 24890 in https://github.com/practicalswift/swift-compiler-crashes/pull/75/. This affected the SMC.encodeSMCKey()
type method. The workaround was to break up the expression as the compiler suggested.
Yep, seen this on mine too...
Still doesn't work in Xcode 8 or 9 😄 (Swift 3.1 or 3.2 and seems it needs to be broken up further to compile on Swift 4 from a quick test). Should file a ticket with the Swift folks, though it's likely known as I recall most of test cases from the swift-compiler-crashes
project were imported into the main project repo as part of the test suite a while back.