title: React Native pod install error: NoMethodError - undefined method `framework?' for nil:NilClass
body: <p>I keep getting this error in "pod install" while the pod file is the same since last successful install! I've been having this problem for few days now.</p>
  
  <p>NoMethodError - undefined method <code>framework?' for nil:NilClass
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/target.rb:112:in</code>build_as_framework?'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:53:in <code>block (3 levels) in verify_no_duplicate_framework_and_library_names'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:53:in</code>select'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:53:in <code>block (2 levels) in verify_no_duplicate_framework_and_library_names'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:48:in</code>each_key'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:48:in <code>block in verify_no_duplicate_framework_and_library_names'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:47:in</code>each'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:47:in <code>verify_no_duplicate_framework_and_library_names'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:37:in</code>validate!'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:590:in <code>validate_targets'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:158:in</code>install!'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command/install.rb:52:in <code>run'
  /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in</code>run'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:52:in <code>run'
  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/bin/pod:55:in</code>'
  /usr/local/bin/pod:23:in <code>load'
  /usr/local/bin/pod:23:in</code>'</p>
  
  <pre><code>
  ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  
  [!] Oh no, an error occurred.
  </code></pre>