react-native-analytics-segment-io
react-native-analytics-segment-io copied to clipboard
RNAnalyticsSegmentIO is not present in iOS
Not sure why, but RNAnalyticsSegmentIO
doesn't seem to be present. I'm trying to add it as per the instructions here: https://github.com/leoilab/react-native-analytics-segment-io#ensure-build-order
Here's me trying to search it:
What I did was to initialize a Podfile
with pod init
command. Here's what it looks like:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'RNSegmentAnalytics' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for RNSegmentAnalytics
pod 'Analytics'
pod 'Segment-GoogleAnalytics'
end
Then I installed the pods using pod install
. Then I followed the instructions here (https://github.com/leoilab/react-native-analytics-segment-io#ensure-build-order) and built the app. It build successfully, but when I import the package:
import Analytics, {
AnalyticsConstants
} from "react-native-analytics-segment-io";
I get an error:
Also tried adding Analytics
instead of RNAnalyticsSegmentIO
:
but no luck either.
Which version of Cocoapods are you running?
@romainbriche I'm using 1.4.0
:+1: On this. Following the instructions I'm getting the same behavior. Using CocoaPods 1.5.4
@anchetaWern I got this installed and working properly by following the manual linking instructions here: https://facebook.github.io/react-native/docs/linking-libraries-ios#manual-linking
Can confirm this is an issue. Add library to Podfile, clean, and the library is missing in EditScheme
@anchetaWern End up going manual linking for now. Hope cocoapods will get fixed soon.
I tried manual linking. No luck. Did you also have to add the header search paths @roycclu
I managed to install this by manually linking it and skip the Ensure build order
steps.