You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to upgrade react-native from my current version (0.60.0) to the latest version: 0.64.0 and, as of a couple days ago, 0.64.1
After making all of the necessary changes described here: https://react-native-community.github.io/upgrade-helper/?from=0.60.0&to=0.64.1
The app runs on android but iOS is still failing. I am receiving the following error:
No such module 'RNPush' in AppDelegate.swift
This is a local package that my team built before I joined it. I have updated the podspec file in the local RNPush package and it gets linked during the pod install process successfully. RNPush.h is imported in my bridging header contained in the same folder as the AppDelegate.swift file. I have also tried multiple variations of adding the path to RNPush.h to the HEADER_SEARCH_PATHS in the xcode build settings (both for the main project and the local package, project and target) but nothing has worked. I know there are many similar issues that have been submitted in the past but nothing has solved my problem.
Additionally, when I try to manually link the local package instead instead of autolinking via the podspec, I get the following error:
'React/RCTBridgeModule.h' file not found
jonahfidel-avant
changed the title
XCode/iOS No such module 'RNPush' in AppDelegate.swift React-Native 0.64.0/0.64.1
0.64.1 - XCode/iOS No such module 'RNPush' in AppDelegate.swift React-Native
May 7, 2021
Upgrading version
0.64.1
upgrading from 0.60.0
Description
I have been trying to upgrade react-native from my current version (0.60.0) to the latest version: 0.64.0 and, as of a couple days ago, 0.64.1
After making all of the necessary changes described here:
https://react-native-community.github.io/upgrade-helper/?from=0.60.0&to=0.64.1
The app runs on android but iOS is still failing. I am receiving the following error:
No such module 'RNPush' in AppDelegate.swift
This is a local package that my team built before I joined it. I have updated the podspec file in the local RNPush package and it gets linked during the pod install process successfully. RNPush.h is imported in my bridging header contained in the same folder as the AppDelegate.swift file. I have also tried multiple variations of adding the path to RNPush.h to the HEADER_SEARCH_PATHS in the xcode build settings (both for the main project and the local package, project and target) but nothing has worked. I know there are many similar issues that have been submitted in the past but nothing has solved my problem.
Additionally, when I try to manually link the local package instead instead of autolinking via the podspec, I get the following error:
'React/RCTBridgeModule.h' file not found
I have seen many issues addressing this error as well such as facebook/react-native#26678, https://stackoverflow.com/questions/58373425/react-rctdefines-h-file-not-found-rn0-61/58398989#58398989, and https://stackoverflow.com/questions/41663002/react-rctbridgemodule-h-file-not-found but again, nothing works.
I have also tried adding the React pod to all of my schemes with no success.
This was working fine on RN 0.60.0 and I am at a loss as to where to go from here. Please help!
React Native version:
System:
OS: macOS 11.3.1
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 56.10 MB / 16.00 GB
Shell: 5.0.11 - /usr/local/bin/bash
Binaries:
Node: 12.22.1 - /usr/local/opt/node@12/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.12 - /usr/local/opt/node@12/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /Users/{user}/.rvm/gems/ruby-2.7.0/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 27, 28, 29
Build Tools: 26.0.2, 28.0.3, 29.0.2, 29.0.3, 30.0.0, 31.0.0
System Images: android-16 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7199119
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_242 - /usr/bin/javac
npmPackages:
@react-native-community/cli: ^5.0.1-alpha.2 => 5.0.1-alpha.2
react: 17.0.1 => 17.0.1
react-native: 0.64.1 => 0.64.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
Expected Results
React native app builds in xcode and from the command line and launches on simulator
Actual Results
Errors detailed above
The text was updated successfully, but these errors were encountered: