Closed SMJ93 closed 3 years ago
For me the solution was downgrading to 1.3.0
https://github.com/segmentio/analytics-react-native/pull/234 fixes this issue
@martintreurnicht I tried to patch the package with this but is not working, any idea how I could do it ?
'Segment/SEGAnalytics.h' file not found
Thank you 😻
@rborn Did you run pod install
? It seems like you haven't installed the latest version of Analytics (4.1+) package yet
This is preventing me from using @segment/analytics-react-native-amplitude
(using version 1.3.0 doesn't help). For some reason, @segment/analytics-react-native-mixpanel
is working fine.
Downgrading to version 1.3.1 worked for me ✨
@agabriele-radius I am facing the same issue with amplitude any solution for this?
Any update on this? I'm blocked and none of the proposed fixes has worked for me without causing additional errors.
I am having the same problem. It looks like it depends on Segment/SEGAnalytics.h instead of Analytics/SEGAnalytics.h
Closing this as it seems to be resolved by various other changes.
@bsneed Can you confirm which other changes fix this and what the suggested resolution for us is?
@DuncanLewis all device mode libraries have been updated to reflect the Segment path being used for the headers. I can't list them all here, but be sure you do a pod repo update
to make sure CocoaPods has all the latest versions available.
@bsneed I am facing this issue and cannot seem to resolve via any of the above methods:
Analytics/SEGAnalytics.h
we cannot downgrade either.
Is there anything else available I could try? Thank you
+1
Having the same problem with version 2.3.1
AppDelegate.m:23:9: 'Analytics/SEGAnalytics.h' file not found
You can't mix and match 2.x with 1.x. 2.x does not need Analytics-iOS anymore. You have some kind of misconfiguration.
@bsneed appreciate the help and super fast answer to my inquiry.
I manage to get the build running by removing the CleverTap
library and destination and by removing this 2 lines on the AppDelegate.m
:
...
#import <Analytics/SEGAnalytics.h>
...
[[SEGAnalytics sharedAnalytics] receivedRemoteNotification:userInfo];
...
Maybe this can be added to the Migration Guide: https://github.com/segmentio/analytics-react-native/blob/master/MIGRATION_GUIDE.md
No problem! I realize this is confusing and not documented well enough as there are some destination support gaps between 1.x and 2.x here. I started a thread internally about rectifying it ASAP.
I updated from
1.3.1
to1.3.2
and my iOS app no longer builds and outputs the following error:I think it is related to the pod dependency:
Analytics (4.1.1)
.It works as expected if I revert to 1.3.1
Analytics (4.0.5)
.react-native-info: