Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Sandboxing is not supported #124

Open
1 of 3 tasks
kerner1000 opened this issue Jul 16, 2022 · 1 comment
Open
1 of 3 tasks

Sandboxing is not supported #124

kerner1000 opened this issue Jul 16, 2022 · 1 comment

Comments

@kerner1000
Copy link

I'm submitting a…

  • bug report
  • feature request
  • other

Short description of the issue/suggestion:

after I run

'codesign' --force --options runtime --deep --entitlements "/Volumes/Case-sensitive Volume/sources/myall/assets/mac/entitlements.plist" --sign "3rd Party Mac Developer Application: Max Mustermannr (6W37Y53F4CM)" "/Volumes/Case-sensitive Volume/sources/myapp/target/MyApp/MyApp.app"

the app is not starting anymore. When I try to invoke the universalJavaApplicationStub, I get the following error:

target/MyApp/MyApp.app/Contents/MacOS/universalJavaApplicationStub: /Users/alex/Library/Containers/com.myapp/Data/target/MyApp/MyApp.app/Contents/MacOS/universalJavaApplicationStub: No such file or directory
target/MyApp/MyApp.app/Contents/MacOS/universalJavaApplicationStub: line 0: exec: /Users/alex/Library/Containers/com.myapp/Data/target/MyApp/MyApp.app/Contents/MacOS/universalJavaApplicationStub: cannot execute: No such file or directory
  • universalJavaApplicationStub version: latest
  • macOS version: 12.4
  • Java version(s): 18
@kerner1000
Copy link
Author

kerner1000 commented Jul 19, 2022

The problem here is the 'Sandbox' flag in the entitlement.plistfile.
If it is set to true, then somehow executable content is expected to be located in the /Users/<username>/Library/Containers directory.

Is it possible to account for this somehow?

Disabeling the Sandbox flag will recover this error, but subsequently won't let me upload the app to the App Store:

NSLocalizedFailureReason = "App sandbox not enabled. The following executables must include the \"com.apple.security.app-sandbox\" entitlement with a Boolean value of true in the entitlements property list: [( \"com.myapp.pkg/Payload/MyApp.app/Contents/MacOS/universalJavaApplicationStub\" )]

@kerner1000 kerner1000 changed the title Stub not executing anymore after codesign Sandboxing is not supported Jul 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant