caner 8 months ago
parent
commit
db263dce47
1 changed files with 2 additions and 4 deletions
  1. 2 4
      main.py

+ 2 - 4
main.py

@@ -30,9 +30,7 @@ def main():
     try:
     try:
         # 连接手机
         # 连接手机
         lockdown = create_using_usbmux()
         lockdown = create_using_usbmux()
-        print("开发者模式",lockdown.developer_mode_status)
-        
-        # 获取app
+        # 获取已安装的app
         with InstallationProxyService(lockdown) as installer:
         with InstallationProxyService(lockdown) as installer:
             # 启动WDA
             # 启动WDA
             wda_start = launchApp(lockdown,installer,WDA_BUNDLE_ID,'xctrunner')
             wda_start = launchApp(lockdown,installer,WDA_BUNDLE_ID,'xctrunner')
@@ -47,7 +45,7 @@ def main():
             else:
             else:
                 print("没找到WDA安装包")
                 print("没找到WDA安装包")
     except ConnectionError as e:
     except ConnectionError as e:
-        print(f"连接失败")    
+        print("连接失败")    
 
 
 
 
 if __name__ == '__main__':
 if __name__ == '__main__':