-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac Catalyst builds are broken for x86_64 arch #50388
Comments
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
@birdofpreyru thanks for the issue, but I can't reproduce it, as you can see below. ![]() Can you try by creating a new app with:
and report back? |
Sorry @cipolleschi , my bad, indeed it works with a clean project. |
@cipolleschi actually, it happens in the clean project as well, when building for x86_64 architecture (i.e. created a new app, set Mac Catalyst as the destination, selected |
We have the same issue as @birdofpreyru. New project init using @react-native-community/cli fails to build for Mac. We get the following error message. |
@birdofpreyru is it because you are on an intel machine? I don't have that option on my machine. I don't know how to debug it. I'll have to ask you to provide more info on where the compiler fails. We are probably missing a @duralabs your is a different problem You r app built natively but then it fails when you try to load the bundle. |
@cipolleschi no, that's on M3 Pro MacBook, with the latest macOS 15.4 and Xcode 16.3. Though, I believe I started to experience this problem a month or two ago, with a previous version of RN, OS, Xcode, just did not reported it immediately. |
Here is a little screen recording, to also show you that it does something weird — when I click the build error, it is first highlighted as the error in the code, but shortly after the highlight disappears, as if Xcode changes opinion and thinks the code is just fine. Screen.Recording.2025-04-03.at.21.30.10.mov |
This comment has been minimized.
This comment has been minimized.
@duralabs please open another issue. the problem is different. Your build is not failing on mac catalyst. @birdofpreyru can you try to replace line 527 like this: originalMessage:errorData[@"originalMessage"]
name:errorData[@"name"]
componentStack:errorData[@"componentStack"]
exceptionId:error.id
- isFatal:errorData[@"isFatal"]
+ isFatal: @(error.isFatal);
extraData:errorData[@"extraData"]]) { and try again? we set the |
@cipolleschi nope, but this replacement turns out to work for me: originalMessage:errorData[@"originalMessage"]
name:errorData[@"name"]
componentStack:errorData[@"componentStack"]
exceptionId:error.id
- isFatal:errorData[@"isFatal"]
+ isFatal:error.isFatal
extraData:errorData[@"extraData"]]) { |
this one as well works: originalMessage:errorData[@"originalMessage"]
name:errorData[@"name"]
componentStack:errorData[@"componentStack"]
exceptionId:error.id
- isFatal:errorData[@"isFatal"]
+ isFatal:[errorData[@"isFatal"] boolValue]
extraData:errorData[@"extraData"]]) { |
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
Cool, we can go with the latest! #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
Description
Steps to reproduce
Just try to build a project for mac Catalyst.
React Native Version
0.78.1
Affected Platforms
Build - MacOS
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
N/A
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: