如題,升級到xcode15.1后,調(diào)試過程中使用po命令,會(huì)報(bào)如下錯(cuò)誤:
error: Internal error [IRForTarget]: Couldn't change a static reference to an Objective-C selector to a dynamic reference
解決方案:
是手機(jī)系統(tǒng)的問題,我開始用的是iOS 15的設(shè)備,就會(huì)出問題,當(dāng)我換成iOS 17系統(tǒng)的iPhone 15后,就沒問題了。
不確定是不是只有iOS 15有問題,也不確定和機(jī)型有沒有關(guān)系,大家可以嘗試下。