Skip to content
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

npx react-native run-ios results to error: Unable to load contents of file list: '/Target Support Files/Pods-<<ProjectName>>...' #36189

Open
KiranJasvanee opened this issue Feb 17, 2023 · 7 comments
Labels

Comments

@KiranJasvanee
Copy link

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.

Screenshot 2023-02-17 at 11 07 26 AM

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

  1. It's a react-native CLI project.
  2. npm install was not working, so ran npm config set legacy-peer-deps true to support legacy project.
  3. ran 'npm install' and it ran successful
  4. 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.
  5. 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

@Grace1China
Copy link

I have this issue too.

@artemis-prime
Copy link

?? How is this possible?

@yedi97
Copy link

yedi97 commented Aug 7, 2023

i has same issue

@CodeAadarsh
Copy link

hey you can use
sudo gem update cocoapods --pre
cd ios && pod update
cd ..
npm run ios

This might work

@Hardik888
Copy link

cd ios
npx pod deintegrate
npx pod update
cd ..
yarn iOS

@KolesnikovP
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants