我正在尝试遵循本教程-http: //resources.infosecinstitute.com/ios-application-security-part-8-method-swizzling-using-cycript/#article
靠近文章底部,我在您输入的部分:
ViewController.messages['validateLogin'] = function() { return true;}
但我没有得到作者得到的响应,而是得到一个 TypeError
throw new TypeError("undefined is not an object (evaluating 'ViewController.messages.validateLogin=function(){return 1}')"
我正在运行 iOS 9.0.2 并拥有 Cycript 0.9.594