-
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
0.72.1 -> 'React/RCTAppSetupUtils.h' file not found #38193
Comments
+1 |
I was running into this same issue after upgrading, did you use the upgrade helper? I did, but missed some needed changes. I ended up going through the list again copying each and every file to upgrade properly, here are the versions I went from and to. Upgrade Link It appears that RCTAppSetupUtils is no longer used in this context, my AppDelegate.mm has no reference to it now. |
I double-checked and can confirm I copied everything correctly. Getting rid of that line leads to the other errors. That import is used by Flipper and after stripping it out everything works fine. I'm gona revisit my flipper config might've missed something there |
I followed the steps in this comment, which solved the issue for me: #37102 (comment). Seems like some changes in React-Core aren't being properly ported over when upgrading react-native. I am now unable to build due to |
+1 having same error after upgrading to 0.72.1 |
Same issue on my side, upgraded from 0.69.1 to 0.72.1 and I am facing the same error : Using Mac M1 |
+1, same problem when upgrade from 0.70.7 -> 0.72.1, hope this can be fixed :( |
Same error when upgrading from 0.70.6 to 0.72.1 |
Definitely an idea! I used only Currently, I just downgraded the RN version and tried to solve the initial problem in a different way, as going through every change and applying it manually seems too much work at this point. Hopefully, we'll get a fix at some point! |
+1 Getting the same error after upgrading to 0.72.2 |
I would like to know which version did you downgrade it to? and is it working for you now. |
facing the same issue. Update I fixed by running this commands and following the comments on other issues. I ran this on project root and ios folder: Then Finally I got a compilation success, but I'm still facing other error. At least it is compiling |
Thanks. But sadly did not work for me. Getting the same error |
try to run the xcode project and compile it to check what errors are happening in the compilation. I did like this and google each error to see a possible solution. |
Same issue after upgrading to 0.72.2. Using Xcode 15 beta, IOS 17.0 |
@nishivinodbhatt, I simply reverted to a previous commit in my github project before the update, so it was It's working now OK, though I had to first sort out in my ticket mentioned Hope this helps! |
I also have this problem in version 0.72.3. Does anyone have a solution besides downgrading? |
@mciechanowicz you don't need to downgrade.. just follow the upgrade guide : React Native Upgrade Guide |
@gvete but does that mean applying each code change manually? I personally am quite reluctant to do that as it is time-consuming, and feels like hardcoding a quick fix for a broken update. |
It only takes like 30-60 minutes if that, much shorter if you are not that behind on versions, and the changes are required for future upgrades anyways so unless you never want to upgrade you will have to do it eventually. |
Use instead #import <RCTAppSetupUtils.h> |
This solution doesn't work, because a lot of dependencies couldn't be found on RCTAppSetupUtils.h but React/RCTAppSetupUtils.h, Did you do an additional step to get this work? |
+1, same problem when upgrade from 0.70.1 -> 0.72.3, Did anyone figure this out? |
Same here. upgraded from 0.70.6 -> 0.72.3. Any solution? |
Same here. upgraded from 0.70.6 -> 0.72.3. Any solution? |
Chiming in that this worked for me too. Apparently when we had done earlier upgrades from 0.69.7, this was overlooked. Cleaning this cruft out fixed the issue. Get the whole list/diff here: https://react-native-community.github.io/upgrade-helper/?from=0.69.7&to=0.72.4#RnDiffApp-ios-RnDiffApp-AppDelegate.mm |
What worked for me was deleting the |
Thank you, kind sir. |
no solution still yet |
If you are using expo, delete your |
Not using expo I just downgrade version |
@hassanharoon321 I'm on react native 0.72.5. Try rerunning the app in the usual way you do after deleting the iOS folder. |
I just changed to new format change to |
after i changed I got another error
|
Have you found a solution for it? I have the same problem. |
This solves not finding
|
I can see that and that the CxxBridge pod that contains I can also confirm that by manually deleting the |
Looking at the output of I'm guessing this is due to this line: react-native/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec Line 28 in 098454d
|
As @rocketraman suggested, it seems like
|
any fix for this as same error in 0.72.3 project having xcode 15.4?? |
Is this error related to Flipper? I am already installing pod using NO_FLIPPER = 1 pod install |
Any solution ? |
Is there any fix for it ? I am having the same problem while upgrading to 0.74.5 |
The `USE_HERMES` flag is set not escaped correctly by `React-RCTAppDelegate.podspec`, and it does not apply. The flag needs to be defined as `USE_HERMES\=1`, but is currently set as `USE_HERMES=1`. Hopefully this will fix facebook#38193.
The `USE_HERMES` flag is set not escaped correctly by `React-RCTAppDelegate.podspec`, and it does not apply. The flag needs to be defined as `USE_HERMES\=1`, but is currently set as `USE_HERMES`. Hopefully this will fix facebook#38193.
The `USE_HERMES` flag is set not escaped correctly by `React-RCTAppDelegate.podspec`, and it does not apply. The flag needs to be defined as `USE_HERMES\=1`, but is currently set as `USE_HERMES`. Hopefully this will fix facebook#38193.
The `USE_HERMES` flag is set not escaped correctly by `React-RCTAppDelegate.podspec`, and it does not apply. The flag needs to be defined as `USE_HERMES\=1`, but is currently set as `USE_HERMES`. Hopefully this will fix facebook#38193.
The `USE_HERMES` flag is set not escaped correctly by `React-RCTAppDelegate.podspec`, and it does not apply. The flag needs to be defined as `USE_HERMES\=1`, but is currently set as `USE_HERMES`. Hopefully this will fix facebook#38193.
New Version
0.72.1
Old Version
0.70.4
Build Target(s)
iOS 16.5 for both device and simulator
Output of
react-native info
System:
OS: macOS 13.4.1
CPU: (10) arm64 Apple M2 Pro
Memory: 1.64 GB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.3.1
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 9.6.7
path: /opt/homebrew/bin/npm
Watchman:
version: 2023.07.03.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.12.1
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 14.3.1/14E300c
path: /usr/bin/xcodebuild
Languages:
Java: Not Found
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.1
wanted: 0.72.1
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: false
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Issue and Reproduction Steps
Trying to run the project on a new Macbook Pro M2. Project fails both with
yarn run ios
and running 'play' straight from XCode.Got into it after trying to resolve another issue (in the link) using this solution: #34106 (comment)
Any help is appreciated!
The text was updated successfully, but these errors were encountered: