     }
     func sendKey(_ defaultName:String) {
         #if os(iOS)
-            if #available(iOS 9.0, *) {
-                var value: Any = "deleted"
-                if UserDefaults.def2.object(forKey: defaultName) != nil {
-                    value = UserDefaults.def2.object(forKey: defaultName)!
+            #if DHMainApp
+                if #available(iOS 9.0, *) {
+                    var value: Any = "deleted"
+                    if UserDefaults.def2.object(forKey: defaultName) != nil {
+                        value = UserDefaults.def2.object(forKey: defaultName)!
+                    }
+                    WCSession.default().transferUserInfo([defaultName:value])
                 }
-                WCSession.default().transferUserInfo([defaultName:value])
-            }
+            #endif
         #endif
     }
+    #if DHMainApp
     func sendAllKeys() {
         #if os(iOS)
             if #available(iOS 9.0, *) {


import Foundation
#if os(iOS)
    import WatchConnectivity
#endif
    


            }
        #endif
    }
    #endif
}
