mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix Symbol not found: (_JSGlobalContextSetInspectable) (#44185)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
Thibault Malbranche
parent
1d0cbfd01b
commit
9bf64c4396
@@ -369,11 +369,13 @@ JSCRuntime::JSCRuntime(JSGlobalContextRef ctx)
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
#ifdef _JSC_HAS_INSPECTABLE
|
||||
#if (__OSX_AVAILABLE_STARTING(MAC_NA, IPHONE_16_4))
|
||||
if (__builtin_available(macOS 13.3, iOS 16.4, tvOS 16.4, *)) {
|
||||
JSGlobalContextSetInspectable(ctx_, true);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
JSCRuntime::~JSCRuntime() {
|
||||
|
||||
Reference in New Issue
Block a user