Skip to content

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

@KiranJasvanee

Description

@KiranJasvanee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍Platform: iOSiOS applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions