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

Fix bundle path check to handle symbolic links (close #858) #859

Conversation

mylifeasdog
Copy link
Contributor

@mylifeasdog mylifeasdog commented Jan 18, 2024

This PR addresses issue #858 concerning the Snowplow SDK's bundle path handling in modularized iOS apps. The current UIViewController extension's method for tracking screen views fails on real iOS devices due to not accounting for the symbolic link between /private/var/ and /var/.

The fix involves updating sp_viewDidAppear to use resolvingSymlinksInPath(), ensuring the bundle paths for both the main app and its frameworks are standardized. This method resolves /private/var/ to /var/, aligning framework paths with the main app bundle. This change guarantees accurate tracking of view controllers across all frameworks on iOS devices.

@snowplowcla snowplowcla added the cla:yes [Auto generated] Snowplow Contributor License Agreement has been signed. label Jan 18, 2024
@mylifeasdog mylifeasdog force-pushed the issue/858-bundle-path-check-for-modularized-app branch 3 times, most recently from 8aa3f5b to ce45e4a Compare January 18, 2024 08:34
@mylifeasdog mylifeasdog force-pushed the issue/858-bundle-path-check-for-modularized-app branch from ce45e4a to 1b287e3 Compare January 18, 2024 10:21
@mylifeasdog mylifeasdog changed the title Fix Bundle Path Check to Handle Symbolic Links (#858) Fix Bundle Path Check to Handle Symbolic Links (closes #858) Jan 19, 2024
@matus-tomlein matus-tomlein changed the base branch from master to release/6.0.0 January 19, 2024 16:32
Copy link
Contributor

@matus-tomlein matus-tomlein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It works nicely, thank you for the contribution @mylifeasdog! We will release it in the upcoming version 6.0.0 release of the tracker.

@matus-tomlein matus-tomlein changed the title Fix Bundle Path Check to Handle Symbolic Links (closes #858) Fix bundle path check to handle symbolic links (close #858) Jan 19, 2024
@matus-tomlein matus-tomlein merged commit 43db134 into snowplow:release/6.0.0 Jan 19, 2024
@mylifeasdog mylifeasdog deleted the issue/858-bundle-path-check-for-modularized-app branch January 22, 2024 04:12
@mylifeasdog
Copy link
Contributor Author

LGTM! It works nicely, thank you for the contribution @mylifeasdog! We will release it in the upcoming version 6.0.0 release of the tracker.

Could you inform me about the expected release window for version 6.0.0? This will help me decide whether to implement alternative solutions or wait for the official update, depending on the timeline.

Thank you!

@matus-tomlein
Copy link
Contributor

Hi @mylifeasdog, the plan is to release it today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes [Auto generated] Snowplow Contributor License Agreement has been signed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants