React-Native: Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template : <p>While executing <code>npx react-native init MyProject</code> I ran into the following error:</p>

<pre><code>✖ Installing CocoaPods dependencies (this may take a few minutes)
error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.
</code></pre>

<p>Which seems to be related to an earlier error displayed:</p>

<pre><code>checking for arm-apple-darwin-gcc... /Library/Developer/CommandLineTools/usr/bin/cc -arch armv7 -isysroot 
checking whether the C compiler works... no
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
</code></pre>

<p>XCode and its CLI seem to all run fine.</p>

<p>My configuration:</p>

<ul>
<li>MacOS Catalina 10.15.1 (19B88) </li>
<li>NPM 6.11.3 </li>
<li>React-Native 0.61.4 </li>
<li>XCode 11.2.1 (11B500)</li>
</ul>

<p>Any leads appreciated.</p>
