analytics-ios icon indicating copy to clipboard operation
analytics-ios copied to clipboard

Invalid import with latest version

Open carl0shd opened this issue 4 years ago • 3 comments

Hi, I am using the latest Analytics pod version 4.1.6, and when I try to import the library in the AppDelegate, Xcode says: 'Segment/SEGAnalytics.h' file not found.

Happens the same thing with the Leanplum integration. Screen Shot 2021-10-26 at 12 08 50 PM

I run pod install, clean the build, and nothings work. I am using Xcode 13, I don't know if this is related https://github.com/segmentio/analytics-ios/pull/994.

A fun fact is that if I use #import <Analytics/SEGAnalytics.h> instead of #import <Segment/SEGAnalytics.h> the app compiles and works perfectly, but I still have the same problem with the Leanplum library, since it uses #import <Segment/SEGAnalytics.h>

PD: is the same problem with https://github.com/segmentio/analytics-ios/issues/1007

carl0shd avatar Oct 26 '21 17:10 carl0shd

+1

sirajtahra avatar Feb 09 '22 12:02 sirajtahra

@carl0shd were you able to fix the issue ?

sirajtahra avatar Feb 10 '22 06:02 sirajtahra

@carl0shd were you able to fix the issue ?

Yes, simply do a fork of the Leanplum SDK library, and change the default import to #import <Analytics/SEGAnalytics.h> because appears segment will not update the SDK 😥.

carl0shd avatar Feb 10 '22 16:02 carl0shd