diff --git a/React/Base/RCTBundleURLProvider.mm b/React/Base/RCTBundleURLProvider.mm index d43e2a0e96..751afb8a7d 100644 --- a/React/Base/RCTBundleURLProvider.mm +++ b/React/Base/RCTBundleURLProvider.mm @@ -10,11 +10,6 @@ #import "RCTConvert.h" #import "RCTDefines.h" -#if __has_include("hermes.h") || __has_include() -#import -#define HAS_BYTECODE_VERSION -#endif - NSString *const RCTBundleURLProviderUpdatedNotification = @"RCTBundleURLProviderUpdatedNotification"; const NSUInteger kRCTBundleURLProviderDefaultPort = RCT_METRO_PORT; @@ -236,9 +231,8 @@ static NSURL *serverRootWithHostPort(NSString *hostPort) runModule:(BOOL)runModule { NSString *path = [NSString stringWithFormat:@"/%@.bundle", bundleRoot]; -#ifdef HAS_BYTECODE_VERSION - NSString *runtimeBytecodeVersion = - [NSString stringWithFormat:@"&runtimeBytecodeVersion=%u", facebook::hermes::HermesRuntime::getBytecodeVersion()]; +#ifdef HERMES_BYTECODE_VERSION + NSString *runtimeBytecodeVersion = [NSString stringWithFormat:@"&runtimeBytecodeVersion=%u", HERMES_BYTECODE_VERSION]; #else NSString *runtimeBytecodeVersion = @""; #endif