diff --git a/src/ios/CDVNodeJS.mm b/src/ios/CDVNodeJS.mm index 77399b9..4f57f03 100644 --- a/src/ios/CDVNodeJS.mm +++ b/src/ios/CDVNodeJS.mm @@ -343,7 +343,7 @@ - (void) startEngineWithScript:(CDVInvokedUrlCommand*)command { NSArray* arguments = nil; NSString* dlopenoverridePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@/%@", NODE_ROOT, NODEJS_DLOPEN_OVERRIDE_FILENAME] ofType:@""]; // Check if the file to override dlopen lookup exists, for loading native modules from the Frameworks. - if(!dlopenoverridePath) { + if(dlopenoverridePath) { arguments = [NSArray arrayWithObjects: @"node", @"-r",