react-native icon indicating copy to clipboard operation
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>>...'

Open KiranJasvanee opened this issue 2 years ago • 7 comments

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

KiranJasvanee avatar Feb 17 '23 06:02 KiranJasvanee

I have this issue too.

Grace1China avatar Jun 21 '23 09:06 Grace1China

?? How is this possible?

artemis-prime avatar Jul 16 '23 14:07 artemis-prime

i has same issue

yedi97 avatar Aug 07 '23 08:08 yedi97

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

This might work

CodeAadarsh avatar Aug 31 '23 06:08 CodeAadarsh

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

Hardik888 avatar Dec 19 '23 21:12 Hardik888

https://stackoverflow.com/questions/74237339/error-unable-to-load-contents-of-file-list-target-support-files-npx-react-n

booboom avatar Apr 19 '24 12:04 booboom

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

KolesnikovP avatar May 01 '24 16:05 KolesnikovP

sudo gem update cocoapods --pre

This worked for me. React Native without expo

0xRowdy avatar Aug 22 '24 20:08 0xRowdy