Skip to content

Commit 224ac21

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Fix Symbol not found: (_JSGlobalContextSetInspectable) (#44185)
Summary: Pull Request resolved: #44185 This change will fix a symbol not found for JSC Runtime. The `if` check was not a compile time check, therefore the symbol ended up in the binary even if it is not available. Following this post on [Apple forum](https://forums.developer.apple.com/forums/thread/749534), this changes should do the trick. ## Changelog [iOS][Fixed] - Fix Symbol not found: (_JSGlobalContextSetInspectable) Reviewed By: hash3r Differential Revision: D56425834 fbshipit-source-id: a37af51b078bd47a938e6b65d9d8e0f7506e746f
1 parent 876914b commit 224ac21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-native/ReactCommon/jsc/JSCRuntime.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,13 @@ JSCRuntime::JSCRuntime(JSGlobalContextRef ctx)
377377
{
378378
#ifndef NDEBUG
379379
#ifdef _JSC_HAS_INSPECTABLE
380+
#if (__OSX_AVAILABLE_STARTING(MAC_NA, IPHONE_16_4))
380381
if (__builtin_available(macOS 13.3, iOS 16.4, tvOS 16.4, *)) {
381382
JSGlobalContextSetInspectable(ctx_, true);
382383
}
383384
#endif
384385
#endif
386+
#endif
385387
}
386388

387389
JSCRuntime::~JSCRuntime() {

0 commit comments

Comments
 (0)