question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid Podfile on Appcenter

See original GitHub issue

I’m taking the following error on pod install:

[!] Invalid `Podfile` file: cannot load such file -- /node_modules/@react-native-community/cli-platform-ios/native_modules.

 #  from /ios/Podfile:2
 #  -------------------------------------------
 #  platform :ios, '9.0'
 >  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
 #  

React Native version:

System: OS: macOS 10.14.6 CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz Memory: 275.30 MB / 8.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 10.16.0 - /usr/local/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2 IDEs: Android Studio: 3.4 AI-183.6156.11.34.5692245 Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild npmGlobalPackages: react-native-cli: 2.0.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:18

github_iconTop GitHub Comments

37reactions
JBaczukcommented, Nov 20, 2019

I had the same error, and it was because I had not installed node dependencies and it was not able to find them at line:

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

I just ran npm i in project root and the error went away.

25reactions
danilowozcommented, Feb 26, 2020

Nevermind, I’ve configured Appcenter wrong. Instead of choosing the React Native configuration, I chose Object C and Swift 🤦‍♂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid Podfile file: Generated.xcconfig must exist
Flutter iOS build on the App Center fails with error: "Invalid Podfile file: Generated.xcconfig must exist · Subscribe to RSS.
Read more >
[Solved]-Flutter iOS build on the App Center fails with error
Coding example for the question Flutter iOS build on the App Center fails with error: "Invalid Podfile file: Generated.xcconfig must exist-Flutter.
Read more >
React Native SDK Troubleshooting - Visual Studio App Center
This error appears when RN core libraries aren't referenced correctly, which can be caused by different kinds of integrating or linking issues.
Read more >
Flutter iOS build on the App Center fails with error: "Invalid ...
iOS : Flutter iOS build on the App Center fails with error: " Invalid Podfile file: Generated.xcconfig must exist [ Beautify Your Computer ......
Read more >
if you're running pod install manually, make sure flutter pub ...
Flutter iOS build on the App Center fails with error: "Invalid Podfile file: Generated.xcconfig must exist. Asked Mar 19, 2020 • 15 votes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found