Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

React Native iOS pod setup has duplicate target issue

$
0
0

I'm building an app with React Native and I have to add pod dependencies to my project. I followed a tutorial on how to init a pod with a brand new react-native init project. This is the content of my Podfile:

target 'MyProject' do

  target 'MyProject-tvOSTests' do
    inherit! :search_paths
  end

  target 'MyProjectTests' do
    inherit! :search_paths
  end

end

target 'MyProject-tvOS' do

  target 'MyProject-tvOSTests' do
    inherit! :search_paths
  end

end

Then I run pod install, and I get this error:

The target MyProject-tvOSTests is declared twice.

I think it's an issue with the react-native init but I don't know how to correct it.

Thanks in advance!


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>