         self.path = device.devicePath() as String?
         self.UDID = device.UDID as NSUUID
         self.version = device.runtime?.versionString
+        
         self.build = device.runtime?.buildVersionString
-        self.isValid = true
+        initDeviceType(device.runtime?.identifier)
         initTrustStorePath()
+        isValid = true
     }
     
     func getAppDataDirMap() -> [String : String] {

    var path : String?
    var trustStorePath : String?
    var isValid : Bool
    
    private var simDevice : AnyObject?
    // private var appDataDirMap : [String : String]?
    
    init() {
        isValid = false
    }
    
    var stateString : String? {

    
    private func initTrustStorePath() {
        trustStorePath = path?.stringByAppendingPathComponent("data/Library/Keychains/TrustStore.sqlite3")
    }
    
    private func initDeviceType (runtimeIdentifier : String?)
    {
        isWatchOS = runtimeIdentifier != nil && runtimeIdentifier!.hasPrefix("com.apple.CoreSimulator.SimRuntime.watchOS")
    }
    
    convenience init(path : String) {
