react-native
react-native copied to clipboard
npx react-native run-ios results to error: Unable to load contents of file list: '/Target Support Files/Pods-<<ProjectName>>...'
Description
I'm receiving following error while trying to run my old react-native project.
❌ error: Unable to load contents of file list: '/Target Support Files/Pods-<<ProjectName>>/Pods-<<ProjectName>>-frameworks-Debug-input-files.xcfilelist' (in target '<<ProjectName>>' from project '<<ProjectName>>')
Also tried to go into an iOS directory and run pod install. In this case I'm receiving invalid podfile.
[!] Invalid `Podfile` file:
[!] Invalid `RNReanimated.podspec` file: undefined method `exists?' for File:Class.
Version
0.71.3
Output of npx react-native info
OS: macOS 13.1 CPU: (8) arm64 Apple M1 Memory: 69.19 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.14.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 9.5.0 - /usr/local/bin/npm Watchman: 2023.02.13.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/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: 2021.2 AI-212.5712.43.2112.8512546 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.71.0 => 0.71.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
- It's a react-native CLI project.
-
npm install
was not working, so rannpm config set legacy-peer-deps true
to support legacy project. - ran 'npm install' and it ran successful
- receiving following error, so tried to upgrade react-native up to latest version- from 0.68.3 to 0.71.0.
error Expected [\n\r] but end of input found.
- at last received the above error which I tried to resolve, but unfortunately unable to so.
Snack, code example, screenshot, or link to a repository
https://stackoverflow.com/questions/75470696/react-native-run-ios-results-to-error-unable-to-load-contents-of-file-list-t
I have this issue too.
?? How is this possible?
i has same issue
hey you can use sudo gem update cocoapods --pre cd ios && pod update cd .. npm run ios
This might work
cd ios npx pod deintegrate npx pod update cd .. yarn iOS
https://stackoverflow.com/questions/74237339/error-unable-to-load-contents-of-file-list-target-support-files-npx-react-n
hey you can use sudo gem update cocoapods --pre cd ios && pod update cd .. npm run ios
This might work
It's helped! Thank you
sudo gem update cocoapods --pre
This worked for me. React Native without expo