I think the problem is that
we're using [NSBundle mainBundle], which (if I remember correctly) NSBundle didn't have a bundleForClass: method back then. So if you build j2objc (which we recommend), try changing that line to "
NSBundle *bundle = [NSBundle bundleForClass:[IOSClass class]];". Any JRE core class can be used in place of IOSClass, but it is guaranteed to be linked into the app.
If that doesn't work, or you don't build j2objc, then consider copying Java_java_lang_SystemClassLoader_getResourceAsStream() into your project and invoke it natively.
Please let us know if either of these work for you, as we don't work with dynamic frameworks.