How to include a external library in JavaScriptCore?
I am trying to load a external library via JavaScriptCore Specifically I want the end result of this: <script src="fancyLibrary.js" type="text/javascript"></script> But with the syntax of this: JSContext *context = [[JSContext alloc] initWithVirtualMachine:[[JSVirtualMachine alloc] init]]; [context loadExternalJavascriptFileWithName:@"fancyLibrary.js"]; JSValue *fancyFunction = context[@"fancy"]; Is this possible at the current time? I figure I can include the external library in the app bundle and call it from there. It's a matter of loading the library into the context. You just need to use