Skip to content
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

DeviceEventEmitter fails to build in iOS #35205

Open
mjstelly opened this issue Nov 4, 2022 · 8 comments
Open

DeviceEventEmitter fails to build in iOS #35205

mjstelly opened this issue Nov 4, 2022 · 8 comments
Labels
Needs: Triage 🔍 Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon. Type: Upgrade Issue Issues reported from upgrade issue form

Comments

@mjstelly
Copy link

mjstelly commented Nov 4, 2022

New Version

0.69.0

Old Version

0.64.1

Build Target(s)

iPhone 13 / iOS 15.5

Output of react-native info

System:
OS: macOS 12.5.1
CPU: (10) arm64 Apple M1 Pro
Memory: 113.67 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.10.0 - ~/.nvm/versions/node/v16.10.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 7.24.0 - ~/.nvm/versions/node/v16.10.0/bin/npm
Watchman: 2022.10.03.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/AH94896/.rvm/gems/ruby-3.0.0/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 30, 31, 33
Build Tools: 29.0.2, 30.0.2, 30.0.3, 33.0.0
System Images: android-31 | ARM 64 v8a, android-31 | Google APIs ARM 64 v8a, android-31 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.16 - /Users/AH94896/.jenv/shims/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.69.0 => 0.69.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Issue and Reproduction Steps

Building source code through Xcode, the build fails with the following error

.../node_modules/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/Services/UMReactNativeEventEmitter.m:11:1: Illegal redeclaration of property in class extension 'UMReactNativeEventEmitter' (attribute must be 'readwrite', while its primary must be 'readonly')

We use DeviceEventEmitter extensively and it has worked as intended on 0.64.1. Now, trying to get a basic build fails with no further guidance on how to resolve the problem. I don't know what you would need to research this issue. Because DeviceEventEmitter is not a simple library to implement, I wouldn't know how to create a test case for this. If you have any suggestions, I'd be willing to try them.

@mjstelly mjstelly added Needs: Triage 🔍 Type: Upgrade Issue Issues reported from upgrade issue form labels Nov 4, 2022
@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Nov 4, 2022
@mjstelly
Copy link
Author

mjstelly commented Nov 4, 2022

Another important point. This issue appears to affect only Apple M1 hardware. Another colleague and I with M1's are both affected. One colleague on an Intel Macbook is not.

@isaakSicor
Copy link

@mjstelly any solution?

@walterwootz
Copy link

any solutions?

@maestrolsj
Copy link

I have that issue with Intel chip on my mac

@github-actions
Copy link

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 25, 2023
@chrisunl
Copy link

I have the same issue.

@github-actions github-actions bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 28, 2023
@dhavalbhuva
Copy link

I have the same issue.

/node_modules/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/Services/UMReactNativeEventEmitter.m:11:1 Illegal redeclaration of property in class extension 'UMReactNativeEventEmitter' (attribute must be 'readwrite', while its primary must be 'readonly')

No known class method for selector 'getAllExportedModules'
No known class method for selector 'getExportedModuleForName:'
No known class method for selector 'getExportedModuleForName:'

@react-native-bot
Copy link
Collaborator

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@react-native-bot react-native-bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon. Type: Upgrade Issue Issues reported from upgrade issue form
Projects
None yet
Development

No branches or pull requests

7 participants