     for (key, object) in dictionary {
         switch object {
         case let object as XPCArray:
-            var anyArray = [AnyObject]()
-            for subDict in object {
-                anyArray.append(toAnyObject(subDict as XPCDictionary))
-            }
-            anyDictionary[key] = anyArray
+            anyDictionary[key] = object.map { toAnyObject($0 as XPCDictionary) }
         case let object as XPCDictionary:
             anyDictionary[key] = toAnyObject(object)
         case let object as String:

/// Version number
let version = "0.2.2"

/// File Contents
var fileContents = NSString()



    if let regexMatch = regex.firstMatchInString(xcodebuildOutput, options: nil, range: range) {
        let escapedSpacePlaceholder = "\u{0}"
        let args = xcodebuildOutput
            .substringWithRange(regexMatch.range)
            .stringByReplacingOccurrencesOfString("\\ ", withString: escapedSpacePlaceholder)
            .componentsSeparatedByString(" ")

        // Remove swiftc/clang, -parseable-output and re-add spaces in arguments
        return Array<String>(args[1..<args.count]).filter({ $0 != "-parseable-output" }).map {
            $0.stringByReplacingOccurrencesOfString(escapedSpacePlaceholder, withString: " ")
        }
    }

    return nil
}

