-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Dotnet app for MacOs built with NetVips crashes in sandbox #188
Comments
Sounds like the same issue mentioned in https://gitlab.freedesktop.org/gstreamer/orc/-/issues/30, which was fixed within liborc 0.4.33. Note that I currently lack access to macOS-based systems, so I cannot reproduce this. Are you able to test the macOS binaries at https://github.com/kleisauke/libvips-packaging/releases/tag/v8.13.3? Unfortunately, due to lovell/sharp#3438, these binaries were not distributed on NuGet. |
After some research, I think it might not be NetVips problem but an incompatibility of dotnet bundle for sandbox environment. According to this document: https://developer.apple.com/library/archive/technotes/tn2206/_index.html
Standard dotnet publishing won't work in sandbox. Avalonia app must be published as a single file but right now there is a bug that stops target net6.0-macos from being bundled as a single file. This has to wait for dotnet team to fix the bug. |
Possibly cross-posted at AvaloniaUI/Avalonia#9764 (similar stack trace) and tracked within the following I'll close this issue for now, please feel free to re-open if this problem is related to NetVips. |
Hi,
I am integrating NetVips to a dotnet app and is now bundling it for publishing in MacOs App Store.
I have found out that desktop app can run well on MacOS with sandbox disabled.
However as apple requires any app that is to be distributed through App Store must be ran in sandbox, I signed the dotnet app with sandbox enabled. Then the app crashed.
I have created a minimal dotnet app. When it is compiled with NetVips, even without actually using NetVips, it crashes in sandbox, while when compiled without netvips, it works in sandbox.
Here is the apple's sandbox environment documentation:
https://developer.apple.com/library/archive/documentation/Security/Conceptual/AppSandboxDesignGuide/AboutAppSandbox/AboutAppSandbox.html#//apple_ref/doc/uid/TP40011183-CH1-SW1
Here is the crash message:
NetVips is a vital part of the app. Anyidea why it happens and how to fix it?
The text was updated successfully, but these errors were encountered: