facebook / chisel

Chisel is a collection of LLDB commands to assist debugging iOS apps.
MIT License
9.13k stars 804 forks source link

Supports Xcode 11 with Python3 instead of Python2 #262

Closed dreampiggy closed 5 years ago

dreampiggy commented 5 years ago

See Xcode 11 Beta Release Notes

LLDB’s Python scripting is now based on Python 3. If you are using Python extensions that aren’t compatible with Python 3, they will break. To help with the transition, you can run in Python 2 mode by setting a default:

defaults write com.apple.dt.lldb DefaultPythonVersion 2 Python 2 support will be removed in the future. (47806994)

LoSenTrad commented 5 years ago

??? 不懂 怎么处理?xcode11不能使用chisel

dorentus commented 5 years ago

??? 不懂 怎么处理?xcode11不能使用chisel

@LoSenTrad

Until this issue is resolved, you can run the following command once in Terminal:

defaults write com.apple.dt.lldb DefaultPythonVersion 2

Then LLDB will use old Python 2 and chisel will be happy to run in Xcode (for now).

LoSenTrad commented 5 years ago

??? 不懂 怎么处理?xcode11不能使用chisel

@LoSenTrad

Until this issue is resolved, you can run the following command once in Terminal:

defaults write com.apple.dt.lldb DefaultPythonVersion 2

Then LLDB will use old Python 2 and chisel will be happy to run in Xcode (for now).

OK! The problem has been solved ! thanks~

dreampiggy commented 5 years ago

Yes. We can trun the Python 2 support for now. I write this issue here, just want to give chisel a hint to start migration to Python 3 :)

chenjiangchuan commented 5 years ago

I spent some time letting chisel support Python chisel support Python 3

revolter commented 5 years ago

@chenjiangchuan, Why didn't you fork this? This way, you could also open a PR here.

kolinkrewinkel commented 5 years ago

Thanks to #266, we should be ready to go on Xcode 11!

nrbrook commented 5 years ago

Please release!