diff --git a/README.md b/README.md index f583077..4392dae 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,11 @@ pip3 install -U tidevice > 使用--trace选项可以查看socket数据流 +### 手机配置 +iOS 16的手机需要手工开启开发者选项。 +开启方法:设置->隐私与安全性->开发者模式 (打开),然后会提示重启 (点击 重新启动) -> 启动后会弹窗 是否打开“开发者模式”?(点击打开) + + ### 查看版本号 ```bash $ tidevice version diff --git a/README_EN.md b/README_EN.md index 0c8fa03..7afc162 100644 --- a/README_EN.md +++ b/README_EN.md @@ -39,6 +39,15 @@ pip3 install -U tidevice ## Usage +Use `--trace` can open socket log. For example: `tidevice --trace info` + +### iOS Setting +iOS 16 need to Open Developer mode Manualy + +How to open + +Settings -> Privacy & Security -> Developer Mode -> (Turn switch ON) -> (Click "Restart") -> (Click "Turn On" when Dialog appears) + ### Show version number ```bash $ tidevice version diff --git a/tidevice/_safe_socket.py b/tidevice/_safe_socket.py index b9a9fef..18645b4 100644 --- a/tidevice/_safe_socket.py +++ b/tidevice/_safe_socket.py @@ -127,7 +127,7 @@ def ssl_unwrap(self): def switch_to_ssl(self, pemfile): """ wrap socket to SSLSocket """ - # logger.debug("Switch to ssl") + logger.debug("Socket({}): switch to ssl", self.id) assert os.path.isfile(pemfile) # https://docs.python.org/zh-cn/3/library/ssl.html#ssl.SSLContext