Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error when updating to Segment 4.1.1, 'Analytics' framework was renamed to 'Segment' in Segment 4.1.1 #17

Closed
leandromperez opened this issue Nov 9, 2020 · 5 comments
Assignees
Labels

Comments

@leandromperez
Copy link

After a pod update:

  • Installing Analytics 4.1.1 (was 4.0.5)
  • Installing Segment-CleverTap 1.1.7
    Captura de Pantalla 2020-11-09 a la(s) 09 48 49

Changing 'Analytics' to 'Segment' where it corresponds, seems to fix the issue:
E.g. #import <Segment/SEGAnalyticsUtils.h> instead of #import <Analytics/SEGAnalyticsUtils.h>

@Aditi3
Copy link
Contributor

Aditi3 commented Nov 9, 2020

Hi @leandromperez

I quickly checked the release notes of Segment Analytics. Looks like in their version 4.1.0 they have renamed module from Analytics to Segment.

Thanks so much for the heads up! We'll add a fix for it in our next release.

@Aditi3 Aditi3 self-assigned this Nov 9, 2020
@Aditi3
Copy link
Contributor

Aditi3 commented Nov 10, 2020

We've shipped the release with the required changes.
Here is the link to the latest release that comes with the fix: https://github.com/CleverTap/clevertap-segment-ios/releases/tag/1.1.8

Thanks again @leandromperez for reporting.

@Aditi3 Aditi3 closed this as completed Nov 10, 2020
@leandromperez
Copy link
Author

@Aditi3 Thanks for that.
Running pod deintegrate + pod update is installing the latest version of Segment (4.1.1) and Segment-Clevertap (1.1.8).
But the build is failing because the Analytics.framework is not present in the link phase. It should be trying to link Segment.framework instead right?

ld: framework not found Analytics
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any ideas?

@Aditi3
Copy link
Contributor

Aditi3 commented Nov 11, 2020

In my Example Project, Segment.framework is getting linked.

Link to Starter Application: https://github.com/CleverTap/clevertap-segment-ios/tree/master/ExampleSwift

Try clearing the Xcode and Pod cache?

@leandromperez
Copy link
Author

leandromperez commented Nov 11, 2020 via email

@Aditi3 Aditi3 added the bug label Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants