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!
Your MyProject-tvOSTests
target is duplicated. Remove the first instance of it.
target 'MyProject' do
target 'MyProjectTests' do
inherit! :search_paths
end
end
target 'MyProject-tvOS' do
target 'MyProject-tvOSTests' do
inherit! :search_paths
end
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With