title: Error setting up react-native-unimodules: Invalid `Podfile` file: cannot load such file
body: <p>I'm following the expo docs to <a href="https://docs.expo.dev/bare/installing-unimodules/#configuration-for-ios" rel="nofollow noreferrer">install react-native-unimodules</a> in a plain react-native app. However the changes to my Podfile appear to break things when running <code>pod install</code>.</p>
  <p>Here's the change that seems to be responsible. The first two lines of the Podfile were:</p>
  <pre><code>require_relative '../node_modules/react-native/scripts/react_native_pods'
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
  </code></pre>
  <p>They're now changed to this:</p>
  <pre><code>require File.join(`node --print &quot;require.resolve('react-native/package.json')&quot;`, &quot;../scripts/react_native_pods&quot;)
  require File.join(`node --print &quot;require.resolve('@react-native-community/cli-platform-ios/package.json')&quot;`, &quot;../native_modules&quot;)
  require File.join(`node --print &quot;require.resolve('react-native-unimodules/package.json')&quot;`, &quot;../cocoapods.rb&quot;)
  </code></pre>
  <p>Which causes this error:</p>
  <pre><code>[!] Invalid `Podfile` file: cannot load such file -- /[myproject]/node_modules/react-native-unimodules/package.json
  /../cocoapods.rb.
  </code></pre>
  <p>The file in question does appear to be in the correct location, so I'm not sure what the issue is?</p>