diff --git a/lyrebird_ios/device_service.py b/lyrebird_ios/device_service.py index a799165..0750b7c 100644 --- a/lyrebird_ios/device_service.py +++ b/lyrebird_ios/device_service.py @@ -89,6 +89,7 @@ def get_default_app_name(): default_bundle_id = plugin_conf.get('bundle_id', '') return default_bundle_id - def reset_screenshot_dir(self): + @staticmethod + def reset_screenshot_dir(): if os.path.exists(ios_helper.screenshot_dir): shutil.rmtree(ios_helper.screenshot_dir)