sentry-dotnet
sentry-dotnet copied to clipboard
Compile error: strip exited with code 139
TLDR;
- This is a regression reported in the Xarain repo in October 2023: https://github.com/xamarin/xamarin-macios/issues/19157
- A temporary workaround might be to roll back to
maui-ios
workload 8.0.402 (see comment) - Rolf Kvinge has already found the problem and submitted a PR with a fix but it hasn't yet been merged. It would help for more people to report the problem to Apple, to try to get that prioritised.
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.8
OS
iOS
SDK Version
4.10.2
Self-Hosted Sentry Version
No response
Steps to Reproduce
- Install Xcode 16 using Xcodes
- Set Xcode 16 active (
sudo xcode-select -s /Applications/Xcode-16.0.0.app/Contents/Developer
) - Install .NET 8 tools with Xcode 16 support (see here)
- Create new iOS app (
dotnet new ios
) - Add latest Sentry SDK (v4.10.2) from NuGet
-
dotnet publish
Expected Result
The app builds
Actual Result
Error while building:
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8287-xcode16/tools/msbuild/iOS/Xamarin.Shared.targets(2848,3): error : strip exited with code 139
This issue has been discussed previously here and a PR was created here (but not accepted yet).
For some reason, I was successful building my app successfully yesterday with the same tooling & Sentry version, but not today. It now consistently fails with every test project if I have the Sentry SDK added to, and it succeeds consistently when I remove it.