Skip to content

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Aug 4, 2025

Fixes: #2260
Relates to #2161
Relates to getsentry/sentry-cocoa#5740

"Fixes" Signing Issue

Starting with 8.52.0 the Cocoa SDK comes with code signing. This relies on symlinks. This will not work as expected with the way we ship the Unity SDK - i.e. export an Xcode project on Windows, build it on macOS.

Wombo-Combo-"Solution": We're now creating an ios-only xcframework out of the downloaded artifact. Doing this makes the resulting bundle a lot smaller and it also gets rid of the code signing.

"Build" the Cocoa SDK in CI

Since the ios-only xcframework creation relies on xcodebuild this needs to happen on a macOS runner. I've added the "building" of the Cocoa SDK back to sdk.yml at treat is like the other native SDKs.
We wanted to get the ability to build from a submodule anyway - see In #2161 - and that's half a step in that direction.

Outcome

Looks like we're going down from ~412MB to ~42MB.
We're no longer running into signing issues since the "rebuild" removes it.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@bitsandfoxes bitsandfoxes requested review from vaind and a team August 5, 2025 11:16
Co-authored-by: Ivan Dlugos <6349682+vaind@users.noreply.github.com>
@bitsandfoxes bitsandfoxes merged commit f21af55 into main Aug 6, 2025
92 of 95 checks passed
@bitsandfoxes bitsandfoxes deleted the chore/create-xcframework-in-ci branch August 6, 2025 13:20
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.

Make UPM package smaller by removing not needed libraries from iOS plugin
2 participants