diff --git a/ReactCommon/jsi/BUCK b/ReactCommon/jsi/BUCK index d2d23ed50a67c7..7fef7d690e6350 100644 --- a/ReactCommon/jsi/BUCK +++ b/ReactCommon/jsi/BUCK @@ -1,5 +1,6 @@ # BUILD FILE SYNTAX: SKYLARK +load("@fbsource//tools/build_defs:default_platform_defs.bzl", "APPLE", "IOS", "MACOSX") load("//tools/build_defs/oss:rn_defs.bzl", "react_native_xplat_dep", "rn_xplat_cxx_library") rn_xplat_cxx_library( @@ -70,6 +71,7 @@ rn_xplat_cxx_library( exported_headers = [ "JSCRuntime.h", ], + apple_sdks = (IOS, MACOSX), cxx_exported_platform_linker_flags = [ ( "macosx-x86_64", @@ -104,6 +106,7 @@ rn_xplat_cxx_library( fbobjc_labels = ["supermodule:ios/default/private.react_native.infra"], # TODO (T55502220): Remove when iOS 9.0 deprecation is complete everywhere. fbobjc_target_sdk_version = "9.0", + platforms = APPLE, visibility = ["PUBLIC"], xplat_mangled_args = { "soname": "libjscjsi.$(ext)",