Closed thomasaugot closed 9 months ago
Hey @thomasaugot Facing the same issue. How did you resolved the issue please ?
Hey @lansanalsm ! Yeah found it after a week on it! The issue came from the package "react-native-location-enabler": "^4.1.1". It is not compatible with iOS and will throw an error if not conditionally called in the app using Platform.OS === "android". I just totally removed it and the error is gone. If you don't have this one installed, check for other packages :)
Thanks @thomasaugot, You're right, for me it was firebase-* packages, i removed them and the error is gone ! Happy new year
We are facing issues when trying to build our app on iOS only. An entire week trying everything and now we are just checking package after package, and yet still unable to find a solution... All packages are up to date, it builds perfectly on Android, but iOS will build successfully yet throw the error:
ERROR Invariant Violation: `new NativeEventEmitter()` requires a non-null argument., js engine: hermes LOG Running "myApp" with {"rootTag":41,"initialProps":{}} ERROR Invariant Violation: "myApp" has not been registered. This can happen if: * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project. * A module failed to load due to an error and `AppRegistry.register component` wasn't called., js engine: hermes
We have tried deleting the Pods, Podfile.lock, deleting node modules, npm install --force, pod install, pod update, even pod deintegrate, pod init, everything we found a bit everywhere on Google, nothing ever worked. We are sure of the app name "myApp" , as you can see in the following files:
System: OS: macOS 12.6.8 CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz Memory: 652.14 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 20.4.0 - /usr/local/bin/node Yarn: Not Found npm: 9.7.2 - /usr/local/bin/npm Watchman: 2023.07.10.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.12.1 - /Users/armandpetit/.rvm/gems/ruby-2.7.4/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.9862592 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.18 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.6 => 0.71.6 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Can't figure out what we are missing. Any help would be amazing :)