bang590/JSPatch ? reverse-engineered prompt
Reverse engineered prompt
Build me a small iOS hotfix bridge that lets me call Objective C classes and methods from JavaScript, so I can patch an app without rebuilding it every time.
I want it to be easy to drop into an existing app, start the engine at launch, load a local or remote JS file, and let the JS code replace or extend Objective C methods on the fly. Please include a simple demo that shows a view being created in Objective C, then changed from JavaScript, plus an example of fixing a buggy method with a script override.
Make sure it supports basic things like calling class methods, instance methods, properties, blocks, and common iOS types like views, strings, arrays, and simple structs. If you need to check current docs or patterns online, go ahead and look them up. Keep it lightweight, practical, and ready to use in a real app.
Are you gonna build this?
make sure you review the code using coderabbit