Skip to content

Commit 8ff0dc1

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Avoid build failure on Catalyst (x86_64)
Summary: When building React Native for mac catalyst on intel architecture, we are observing a build failure in RCTInstance. See issue: facebook#50388 Apparently, the compiler don't understand that `errorData[@"isFatal"]` is a BOOL, so we are helping it by extracting the `boolValue`. ## Changelog: [iOS][Fixed] - Avoid build failure on Catalyst (x86_64) Differential Revision: D72558024
1 parent 786c6e8 commit 8ff0dc1

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon

1 file changed

+1
-1
lines changed

packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ - (void)_handleJSError:(const JsErrorHandler::ProcessedError &)error withRuntime
609609
name:errorData[@"name"]
610610
componentStack:errorData[@"componentStack"]
611611
exceptionId:error.id
612-
isFatal:errorData[@"isFatal"]
612+
isFatal:[errorData[@"isFatal"] boolValue]
613613
extraData:errorData[@"extraData"]]) {
614614
JS::NativeExceptionsManager::ExceptionData jsErrorData{errorData};
615615
id<NativeExceptionsManagerSpec> exceptionsManager = [_turboModuleManager moduleForName:"ExceptionsManager"];

0 commit comments

Comments
 (0)