react-native-analytics-segment-io icon indicating copy to clipboard operation
react-native-analytics-segment-io copied to clipboard

RNAnalyticsSegmentIO is not present in iOS

Open anchetaWern opened this issue 6 years ago • 8 comments

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:

screen shot 2018-06-11 at 9 34 59 pm

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:

screen shot 2018-06-11 at 9 42 13 pm

Also tried adding Analytics instead of RNAnalyticsSegmentIO:

screen shot 2018-06-11 at 10 09 31 pm

but no luck either.

anchetaWern avatar Jun 11 '18 13:06 anchetaWern

Which version of Cocoapods are you running?

romainbriche avatar Jun 12 '18 05:06 romainbriche

@romainbriche I'm using 1.4.0

anchetaWern avatar Jun 12 '18 05:06 anchetaWern

:+1: On this. Following the instructions I'm getting the same behavior. Using CocoaPods 1.5.4

dphaener avatar Aug 01 '18 00:08 dphaener

@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

dphaener avatar Aug 01 '18 15:08 dphaener

Can confirm this is an issue. Add library to Podfile, clean, and the library is missing in EditScheme

roycclu avatar Aug 05 '18 14:08 roycclu

@anchetaWern End up going manual linking for now. Hope cocoapods will get fixed soon.

roycclu avatar Aug 05 '18 15:08 roycclu

I tried manual linking. No luck. Did you also have to add the header search paths @roycclu

jwaldrip avatar Aug 13 '18 23:08 jwaldrip

I managed to install this by manually linking it and skip the Ensure build order steps.

gianpaj avatar Sep 15 '18 12:09 gianpaj