-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
*** -[NSXPCEncoder _checkObject:]: This coder only encodes objects that adopt NSSecureCoding (object is of class 'RCTWeakEventEmitterWrapper'). #47762
Comments
Having the same issue when running application on macos m1. |
Problem exhibits on 76.2 but 76.1 is fine. Also, issue only exhibits on catalyst. Building to an iPhone or iPhone simulator works fine. |
I’m experiencing the same issue. I’m building using Mac Catalyst. This issue might have been caused by 36fd553 (related to React Native v0.76.2 release). |
We had this issue with 0.76.3 on Mac (catalyst). Downgraded to 0.76.1 as suggested above and it worked. |
Thanks for verifying. I'll add to the description that it only affects Catalyst. My workaround is to disable new arch. I only use catalyst for development so I hope to be able to enable it without further changes for release builds.
|
cc. @NickGerleman as he worked on the commit mentioned here. It might be that the fix uses some API not available on MacCatalyst. We will test on the platform and fix it for that as well. |
Summary: Pull Request resolved: #48225 Fixes #47762 The weak event emitter in AttributedString attributes is causing a serialization error when typing into a TextInput in a Mac Catalyst build. We can resolve this by not putting the event emitters in the attributed string, but this is likely to cause other issues with event handling for nested <Text> components. ## Changelog [iOS][Fixed] - Workaround for Mac Catalyst TextInput crash due to serialization attempt of WeakEventEmitter Reviewed By: NickGerleman Differential Revision: D66664583 fbshipit-source-id: efdfbcb0db4d5e6b9bf7c14f9bbb221faae2d724
Summary: Pull Request resolved: #48225 Fixes #47762 The weak event emitter in AttributedString attributes is causing a serialization error when typing into a TextInput in a Mac Catalyst build. We can resolve this by not putting the event emitters in the attributed string, but this is likely to cause other issues with event handling for nested <Text> components. ## Changelog [iOS][Fixed] - Workaround for Mac Catalyst TextInput crash due to serialization attempt of WeakEventEmitter Reviewed By: NickGerleman Differential Revision: D66664583 fbshipit-source-id: efdfbcb0db4d5e6b9bf7c14f9bbb221faae2d724
this crash also happen on a iOS build app running on Apple Silicon Mac(in Xcode Destination: "Mac(Designed for iPad)") not only Mac Catalyst, I made a pull request to fix this #48583 |
Description
Crash as soon as I enter anything in a
<TextInput />
, when running app via Mac CatalystSteps to reproduce
npx create-expo-app@latest
npm expo run:ios
yarn start
<TextInput />
anywhere in the example app.React Native Version
0.76.2
Affected Platforms
Runtime - iOS, Runtime - Desktop
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/Voxar/react-native-textinput-crash
Screenshots and Videos
The text was updated successfully, but these errors were encountered: