title: ":CFBundleIdentifier", Does Not Exist: ReactNative 0.58 on Mac / iOS
body: <p>I am following the ReactNative tutorial for 0.58. I do everything it says to do and I am crashing after running <code>react-native run-ios</code>. I have seen this extremely similar <a href="https://stackoverflow.com/questions/37461703/print-entry-cfbundleidentifier-does-not-exist">SO question</a> from 2016.</p>
  
  <ul>
  <li>I attempted <code>react-native upgrade</code> and it recommended doing <code>react-native-git-upgrade.</code>This did nothing. Same problem.</li>
  <li>The bit on running <code>./configure</code> in the question above after cd-ing into <code>glog</code> did nothing. There was no <code>configure</code> script there. In the path <code>NewStupidProject/node_modules/react-native/scripts</code> there is a script called <code>ios-configure-glog.sh</code>. I run <code>bash ios-configure-glog.sh</code> and it says <code>ios-configure-glog.sh: line 31: ./configure: No such file or directory</code>. </li>
  <li>I have also attempted setting Xcode to use the legacy build system. This did not fix the issue. I am restarting my laptop now to see if that makes any of these changes take effect. <em>No luck.</em> At the top it says:</li>
  </ul>
  
  <blockquote>
    <p>Found Xcode project NewStupidProject.xcodeproj Building using
    "xcodebuild -project NewStupidProject.xcodeproj -configuration Debug
    -scheme NewStupidProject -destination id=854019D1-8EE7-4D13-87E1-385E6CAC21BE -derivedDataPath build" User
    defaults from command line:</p>
  
  <pre><code>IDEDerivedDataPathOverride = /Users/me/NewStupidProject/ios/build
  </code></pre>
    
    <p>Prepare build</p>
    
    <p>note: Using legacy build system
    === BUILD TARGET double-conversion OF PROJECT React WITH CONFIGURATION Debug ===</p>
  </blockquote>
  
  <p>When I go into the home directory and run <code>react-native --version</code> the output is:</p>
  
  <pre><code>[NewStupidProject](master)$ react-native --version
  react-native-cli: 2.0.1 
  react-native: 0.58.4 
  [NewStupidProject](master)$
  </code></pre>
  
  <p>My output after crashing is: </p>
  
  <blockquote>
    <p>** BUILD FAILED **</p>
    
    <p>The following build commands failed:
            PhaseScriptExecution Install\ Third\ Party /Users/me/native_react_apps/NewStupidProject/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
    (1 failure)</p>
    
    <p>Installing
    build/Build/Products/Debug-iphonesimulator/NewStupidProject.app An
    error was encountered processing the command
    (domain=NSPOSIXErrorDomain, code=22): Failed to install the requested
    application The bundle identifier of the application could not be
    determined. Ensure that the application's Info.plist contains a value
    for CFBundleIdentifier. Print: Entry, ":CFBundleIdentifier", Does Not
    Exist</p>
    
    <p>Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier
    build/Build/Products/Debug-iphonesimulator/NewStupidProject.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist</p>
    
    <p>Error: Command failed: /usr/libexec/PlistBuddy -c
    Print:CFBundleIdentifier
    build/Build/Products/Debug-iphonesimulator/NewStupidProject.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist</p>
  
  <pre><code>at checkExecSyncError (child_process.js:637:11)
  at Object.execFileSync (child_process.js:655:13)
  at Promise.then (/Users/me/native_react_apps/NewStupidProject/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)
  </code></pre>
  </blockquote>
  
  <h2>How is it possible for the setup process to be this fraught with errors and this difficult?</h2>
  
  <h2>WHY is this error message not in the <a href="https://facebook.github.io/react-native/docs/troubleshooting#content" rel="nofollow noreferrer">Troubleshooting ReactNative</a> setup?</h2>
  
  <h2>HOW do I fix this? Is it possible to avoid this altogether in the future?</h2>
  
  <p>Other versioning info:</p>
  
  <ul>
  <li>XCode: <code>10.1</code></li>
  <li>Command Line Tools: <code>10.1</code></li>
  <li>yarn: <code>0.27.5</code></li>
  <li>watchman: <code>4.9.0</code></li>
  <li>homebrew: <code>2.0.1</code></li>
  <li>npm: <code>6.8.0</code></li>
  <li>node: <code>v11.9.0</code></li>
  <li>macOS: <code>10.13.6</code></li>
  </ul>
  
  <p><strong>UPDATE</strong>: 
  I am trying to implement the solution in <a href="https://github.com/facebook/react-native/issues/20774" rel="nofollow noreferrer">this issue</a> in GitHub and I'm getting: </p>
  
  <blockquote>
    <p>dyld: Library not loaded:
    /usr/local/opt/readline/lib/libreadline.7.dylib   Referenced from:
    /usr/local/bin/awk   Reason: image not found
    ./ios-install-third-party.sh: line 20: 24497 Broken pipe: 13<br>
    shasum -p "$cachedir/$file"
         24498 Abort trap: 6           | awk -v hash="$hash" '{exit $1 != hash}' Incorrect hash: 61067502c5f9769d111ea1ee3f74e6ddf0a5f9cc
    ?/Users/me/.rncache/glog-0.3.5.tar.gz</p>
  </blockquote>
  
  <p><strong>UPDATE No. 2</strong> I am trying to run the <code>watchman watch-del-all</code> command as recommended <a href="https://gist.github.com/jarretmoses/c2e4786fd342b3444f3bc6beff32098d" rel="nofollow noreferrer">here</a> to clear the cache for RN > 0.50 and the whole thing is hanging. </p>
  
  <p><a href="https://i.stack.imgur.com/JxwqI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JxwqI.png" alt="enter image description here"></a></p>