-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Android working fine but iOS returns an error regarding React-Codegen from project Pods #34651
Comments
I figured it actually by digging through another thread, from the root of your project run the following. Cheers.
Edit: When you add a package to your project and need to run a pod install, use the command above so the new arch stays enabled. Otherwise, you will return to your error state until you run it again. Just a heads up. |
Oh my god @mypalvikram I want to wish you a happy new year coming up, thank you so much. You have saved me after 4.5 hours of debugging. Thank you! |
didnt work with me |
hi, i just wanted to say thank you and i wanted to give you a small donation but was unable to find a link. After about 20 hours searching for wtf was happening with the project im trying to build for iOS, your answer was the answer i needed, i tried a 100 thousand things. thankyou and i hope someday iOS rots in hell. |
Hey, thank you for the gesture! But it's totally fine I'm glad I was able to help! ❤️ |
@mypalvikram thanks for sharing the solution. Sadly it didn't work for me. I feel like I'm on the right track but I might be missing something minor. Can you please help me out? Here are the logs i get after running the command you shared:
|
@AbreezaSaleem What version of RN are you using? When I first posted this it was before many changes and updates so I can help check if that still applies. |
@mypalvikram i am using |
Was able to fix my error following the steps mentioned here: #34106 (comment) Edit: found the actual fix. Apparently, the error was getting caused after an update to XCode to |
Hello, I have the same issue but when I try to run the command I get the following error: !] Invalid I cannot update React-reanimated though because other dependencies will break: |
Resolved my iOS building app. |
mac apple m2 pro sonoma 14.4.1 in terminal |
Description
iOS was working fine until this error appeared:
Not sure why this occurred after hours of working, but I can't seem to find a solution. I did come across this page that outlines what to do for versions for >0.69.0
https://fbflipper.com/docs/getting-started/react-native/
Version
0.70.0
Output of
npx react-native info
System:
OS: macOS 13.0
CPU: (10) arm64 Apple M1 Max
Memory: 1.26 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.9.0 - /opt/homebrew/bin/node
Yarn: 1.22.18 - ~/.yarn/bin/yarn
npm: 8.19.1 - /opt/homebrew/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /Users/vikrampal/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 14.0/14A309 - /usr/bin/xcodebuild
Languages:
Java: 18.0.2 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.0 => 0.70.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Running
yarn ios --simulator="iPhone 14 Pro Max"
Snack, code example, screenshot, or link to a repository
Podfile
The text was updated successfully, but these errors were encountered: