-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix bundle path check to handle symbolic links (close #858) #859
Conversation
8aa3f5b
to
ce45e4a
Compare
ce45e4a
to
1b287e3
Compare
There was a problem hiding this 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.
43f6453
to
63470ba
Compare
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! |
Hi @mylifeasdog, the plan is to release it today! |
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 useresolvingSymlinksInPath()
, 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.