Skip to content

feat: NativeAOT iOS support - #2820

Merged
vaind merged 8 commits into
feat/4.0.0from
feat/net8-ios-aot
Nov 16, 2023
Merged

vaind merged 8 commits into
feat/4.0.0from
feat/net8-ios-aot

Conversation

@vaind

@vaind vaind commented Nov 11, 2023 •

Copy link
Copy Markdown
Contributor

Adds support for NativeAOT for .net8-ios (vanilla & MAUI)

closes #2180

#skip-changelog

@github-actions

github-actions Bot commented Nov 11, 2023 •

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 2749094

@tipa

tipa commented Nov 16, 2023

Copy link
Copy Markdown

Will this also make NativeAOT on macOS work (non-MAUI)? Or should it already work?

@vaind

vaind commented Nov 16, 2023

Copy link
Copy Markdown
Contributor Author

Will this also make NativeAOT on macOS work (non-MAUI)? Or should it already work?

That's already available in v4.0.0 alpha

@tipa

tipa commented Nov 16, 2023

Copy link
Copy Markdown

For both iOS and macOS? I wasn't able to capture crashes in my NativeAOT iOS app using v4.0.0 alpha

@vaind

vaind commented Nov 16, 2023

Copy link
Copy Markdown
Contributor Author

For both iOS and macOS? I wasn't able to capture crashes in my NativeAOT iOS app using v4.0.0 alpha

No, you've asked about macOS so I've answered for macOS. That is already available.

@vaind

vaind commented Nov 16, 2023 •

Copy link
Copy Markdown
Contributor Author

I wasn't able to capture crashes

Also, I've just noticed this bit -> We're currently not handling actual native crashes through our native integration, only managed (.NET) exceptions in NativeAOT published apps. In any case, if you have a case that's not captured and should be, please raise an issue, ideally with a reproducible example

@tipa

tipa commented Nov 16, 2023

Copy link
Copy Markdown

I was just using SentrySdk.CauseCrash(CrashType.Managed) and that didn't show up (only when running in Debug / non-NativeAOT). I'll wait until this PR is merged and a new version is published, then I'll try again.

@vaind
vaind force-pushed the feat/net8-ios-aot branch 2 times, most recently from 5262687 to 07a008a Compare November 16, 2023 13:45
@vaind
vaind force-pushed the feat/net8-ios-aot branch from 07a008a to b808e21 Compare November 16, 2023 13:49
@vaind
vaind marked this pull request as ready for review November 16, 2023 15:02

@bitsandfoxes bitsandfoxes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks great!

Comment thread CHANGELOG.md Resolved

<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'android' And '$(OSArchitecture)' == 'Arm64'">android-arm64</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'ios' And '$(OSArchitecture)' == 'Arm64'">iossimulator-arm64</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'ios' And '$(_IsPublishing)' == 'true'">ios-arm64</RuntimeIdentifier>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we missing an ios-x64 RuntimeIdentifier?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no such thing as x86_64 iphones

Co-authored-by: Stefan Jandl <[email protected]>
@vaind
vaind merged commit 0d643ff into feat/4.0.0 Nov 16, 2023
@vaind
vaind deleted the feat/net8-ios-aot branch November 16, 2023 18:58
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.

3 participants