Simple Swift class does not compile
My simple class, ClassWithOneArray, produces this error: Bitcast requires both operands to be pointer or neither %19 = bitcast i64 %18 to %objc_object*, !dbg !470 LLVM ERROR: Broken function found, compilation aborted! Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift failed with exit code 1 However, my class, ClassWithOneInt, does not. Why? class ClassWithOneInt { var myInt = Int() init(myInt: Int) { self.myInt = Int() } func encodeWithCoder(aCoder: NSCoder) { aCoder.encodeObject(myInt, forKey: "myInt") } init(coder aDecoder: NSCoder) {