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

RUMM-1492: Fix isSystemImage detection #563

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

buranmert
Copy link
Contributor

@buranmert buranmert commented Aug 12, 2021

What and why?

isSystemImage is important for crash report symbolication at the backend.
However, it's a bit tricky tell system images from user images.

In simulator

User images can be found in

  1. MyApp.app bundle or
  2. DerivedData folder (which is customizable)

System images can only be found in Xcode.app bundle.

In device

System images can be found in various places, such as

  1. usr/lib/
  2. System/Library/
  3. etc.

User images can only be found in MyApp.app bundle.

How?

We implemented 2 different logic based on the platform: simulator or device.
However, we test both in our unit tests.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference

@buranmert buranmert self-assigned this Aug 12, 2021
@buranmert buranmert requested a review from a team as a code owner August 12, 2021 14:00
In device, user images can be in /Bundle/Application/ only.
Otherwise, it is a system image.
In simulator, system image can be in Xcode.app/Contents/Developer/Platforms only.
Otherwise, it is a user image.
@buranmert buranmert force-pushed the buranmert/RUMM-1492-fix-isSystemImage-v2 branch from d74d3a8 to 12ef7a5 Compare August 12, 2021 14:01
@buranmert buranmert merged commit 3b43f91 into master Aug 13, 2021
@buranmert buranmert deleted the buranmert/RUMM-1492-fix-isSystemImage-v2 branch August 13, 2021 13:18
@ncreated ncreated mentioned this pull request Sep 1, 2021
2 tasks
ncreated pushed a commit that referenced this pull request Sep 27, 2021
…Image-v2

RUMM-1492: Fix `isSystemImage` detection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants