Reputation: 357
I'm trying to add mixpanel plugin into my react-native project. I'm using these links
and the integration in xcode is here mixpanel cocoapods
I followed these instructions:
gem install cocoapods
then I run pod setup and create Podfile text file into the project. then when I run pod install into my bash command line i get this error
The dependency
Mixpanel
is not used in any concrete target.
Upvotes: 2
Views: 694
Reputation: 1225
I was getting the above error. So I added the Text file in podfile in below format:
target "MercadoPagoSample" do
source 'https://github.com/CocoaPods/Specs.git'
# Se necesita este parámetro por ser una SDK en swift
use_frameworks!
platform :ios, '9.0'
pod 'MercadoPagoSDK', '3.6.0'
end
Then I was able to update the podfile.
Upvotes: 0
Reputation: 69
You first need to run pod init
from your react native ios
directory. This generates the correct starting podfile, targeting your app correctly.
https://github.com/facebook/react-native/issues/7775
Upvotes: 0