Open eduardbosch opened 6 years ago
Injecting new instances of things can be a bit problematic as exactly where the “class object” the app messages to create the instance can be undefined and may or not contain your changes. This is a bit of an edge case.
So it happens that this class is not injected and the code is reexecuted with the old class?
Thanks. Even with this little problems, this tool is great!
Hi again 🙂
I'm having trouble with updating a class that extends CAShapeLayer. The log says it has been injected, but the app does do not reflect its changes.
The class is as simple as this:
I'm sure that this
init
function is called every time I inject something as every time I inject something, theprint('initializing')
appears in the log. If I change the print message toprint('another message')
, when I save the file, the log continues to show 'initializing' message. The log also says that theSampleLayer
swift file has been injectedAm I missing something o misconfigured something?
I'm using AppCode, but the problem happens also if I only use Xcode.
Thanks! 🎉