-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
When enable sandbox in entitlement file for signing for Mac store, signed app crashes. #9764
Comments
Note that instructions were written for .NET SDK 6.0, something might have changed in 7.0. Especially since something fails in MSBuild during bundle generation |
Switched to 6, still same problem: command: errors:
with errors:
How do I specify the host binary? Can't find any documentation about it. Many thanks. |
It might somehow be related to the fact that you are using |
I do need to use net6.0-macos for IAP APIs. I have tried to publish with the latest
Trying to get help from dotnet community as well: Any idea how to fix that? |
Describe the bug
On MacAir M1 chip, with net6.0-macos as target framework, if sandbox enabled, app always crashes. If disable sandbox, app works.
To Reproduce
git clone https://github.com/lanyusan/avanolia-iap-bug1
open it with visual studio for Mac
choose release build.
build
sign it with apple dev cert:
open AvanoliaInAppPluginBug.app
Expected behavior
app is launched successfully
Additional context
I have tried the publish command stated by official packaging guide to generate single exe:
https://docs.avaloniaui.net/docs/distribution-publishing/macos#sandbox-entitlements-and-signing
the command:
dotnet publish ../../ProjectFolder/AppName.csproj -c release -f net6.0-macos -r osx-x64 --self-contained true -p:PublishSingleFile=true
which had this error:
So according the command was changed to :
Following build errors popped up:
Not sure if this is the root cause. If yes, how to fix the above single file publish problem.
Screenshots
Crash report:
Desktop (please complete the following information):
Mac M1, Ventura 13.1
0.10.18
I have stuck here for a couple of days. Help much appreciated.
The text was updated successfully, but these errors were encountered: