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

Workaround VS Pair to Mac issue #2164

Merged
merged 7 commits into from
Feb 7, 2023
Merged

Workaround VS Pair to Mac issue #2164

merged 7 commits into from
Feb 7, 2023

Conversation

mattjohnsonpint
Copy link
Contributor

@mattjohnsonpint mattjohnsonpint commented Feb 7, 2023

Workaround xamarin/xamarin-macios#16001 by ensuring that the net6.0-ios target of Sentry.Bindings.Cocoa does not contain a zipped resources file.

We can do this by building the Sentry Cocoa SDK separately for iOS than for MacCatalyst. Only the MacCatalyst build contains symlinks, so the iOS resources will be copied into the package directly instead of being zipped. Nice side effect of this is the Sentry.Bindings.Cocoa nuget package reduces in size from 20MB to 10.5MB, because each target only has the native files it needs, rather than the whole xcframework.

Now that the resources aren't being zipped, we also need to strip out the Cocoa header files. Otherwise, the build gives an error when packaging due to long file paths. (We don't need the header files in the nuget package anyway.)

Fixes #2037 - Tested with VS on Windows with a pre-release package.

Also bumped the Cocoa SDK from 7.31.4 to 7.31.5. (We'll do 8.x with #2148)

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

LGTM, just a nit on changelog

CHANGELOG.md Outdated Show resolved Hide resolved
@mattjohnsonpint mattjohnsonpint merged commit aafd5fa into main Feb 7, 2023
@mattjohnsonpint mattjohnsonpint deleted the ios-bindings branch February 7, 2023 23:18
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.

MAUI, iOS simulator. "ResolveNativeReferences" exception.
2 participants