sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

TEST: Mergeable Sample

Open denrase opened this issue 1 year ago • 0 comments

:scroll: Description

I have added the mergeable flags to our build script and tested release builds in the Simulator on macOS.

The sample project is embedding the Sentry dynamic library.

Size

The archive is slightly smaller with mergeable enabled, but the installed app should be slightly larger because of additional metadata.

Default Mergeable
Bildschirmfoto 2024-08-26 um 16 06 41 Bildschirmfoto 2024-08-26 um 16 06 35

Launch Time

Load times are similar. Launched both versions 10 times after the initial installation. Launching from Xcode takes longer when using mergeable instead of the default dylib.

Default Mergeable
app_launch_time_2_dyn app_launch_time_2_merged

Conclusion

We could add the linker flags to our build script for Sentry-Dynamic. Users can then decide if they want to use mergeable. This is opt-in for them, as the default is the same as before.

We can delete this PR afterwards.

:bulb: Motivation and Context

Sample to test mergeable option.

Relates to #3719

denrase avatar Aug 26 '24 14:08 denrase