Skip to content
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

Distributable apps of examples don't launch on mac-arm64 #2867

Closed
sdercolin opened this issue Mar 13, 2023 · 0 comments · Fixed by #2974
Closed

Distributable apps of examples don't launch on mac-arm64 #2867

sdercolin opened this issue Mar 13, 2023 · 0 comments · Fixed by #2974
Assignees
Labels
bug Something isn't working native distribution

Comments

@sdercolin
Copy link

sdercolin commented Mar 13, 2023

Describe the bug
Tried with notepad and falling-balls examples.
app created by createDistributable or packageDmg doesn't launch.

Affected platforms
Select one of the platforms below:

  • Desktop

Versions

  • Kotlin version*: 1.8.10
  • Compose Multiplatform version*: 1.3.1
  • OS version(s)* (required for Desktop and iOS issues): 13.2.1 (22D68)
  • OS architecture (x86 or arm64): arm64
  • JDK (for desktop issues): 17.0.3

To Reproduce
Steps and/or the code snippet to reproduce the behavior:

  1. Run createDistributable task
  2. Run the built app

Expected behavior
The app should launch normally.

Screenshots
If instead of launching the app, run the executable under /Contents/MacOS/, it gets the following error.
image

Additional context
Tried to revert versions to

kotlin.version=1.7.10
compose.version=1.2.2

and the issue is fixed.

@sdercolin sdercolin added bug Something isn't working submitted labels Mar 13, 2023
AlexeyTsvetkov added a commit that referenced this issue Apr 4, 2023
Also, this change configures entitlements for
local ad hoc signs on Apple Silicon

Fixes #2867
Partial fix of #2887
AlexeyTsvetkov added a commit that referenced this issue Apr 4, 2023
Also, this change configures entitlements for
local ad hoc signs on Apple Silicon

Fixes #2867
Partial fix of #2887
@AlexeyTsvetkov AlexeyTsvetkov linked a pull request Apr 4, 2023 that will close this issue
AlexeyTsvetkov added a commit that referenced this issue Apr 4, 2023
Also, this change configures entitlements for
local ad hoc signs on Apple Silicon

Fixes #2867
Partial fix of #2887
AlexeyTsvetkov added a commit that referenced this issue Apr 10, 2023
Previously Compose Multiplatform Gradle plugin required
JDK 15+ for distribution packaging. However, fixing #2867 required
always passing --mac-entitlements to jpackage, which is
only available with JDK 17+.
AlexeyTsvetkov added a commit that referenced this issue Apr 10, 2023
Previously Compose Multiplatform Gradle plugin required
JDK 15+ for distribution packaging. However, fixing #2867 required
always passing --mac-entitlements to jpackage, which is
only available with JDK 17+.
AlexeyTsvetkov added a commit that referenced this issue Apr 11, 2023
Previously Compose Multiplatform Gradle plugin required
JDK 15+ for distribution packaging. However, fixing #2867 required
always passing --mac-entitlements to jpackage, which is
only available with JDK 17+.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working native distribution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants