Skip to content

Commit 0f53429

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Avoid build failure on Catalyst (x86_64) (#50514)
Summary: Pull Request resolved: #50514 When building React Native for mac catalyst on intel architecture, we are observing a build failure in RCTInstance. See issue: #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) Reviewed By: cortinico Differential Revision: D72558024 fbshipit-source-id: 152d89b02ae250a8ae54fe2df658c018d5f63f45
1 parent 26a6ae0 commit 0f53429

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)