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

US Play not executable on MacOS Catalina #249

Open
bnest opened this issue Sep 7, 2021 · 6 comments
Open

US Play not executable on MacOS Catalina #249

bnest opened this issue Sep 7, 2021 · 6 comments

Comments

@bnest
Copy link

bnest commented Sep 7, 2021

Issue type: Bug report

Actual behaviour

When downloaded the latest release https://github.com/UltraStar-Deluxe/Play/releases/tag/v0.3.1 and using the MacOS binary, it is not usable on MacOS 10.15.7 (19H524).

When double clicking it says: "UltraStar Play can't be opened". When using the terminal with "open UltraStar\ Play.app" it quits with error:

LSOpenURLsWithRole() failed with error -10810 for the file /Users/MyUser/Downloads/StandaloneOSX/UltraStar Play.app.

Expected behaviour

The binary should start US Play

Steps to reproduce

Should be the same on all MacOS Catalina installs

  1. Download v0.3.1
  2. Start binary

Details

The problem can be resolved / I resolved it.

This issue seems to be somehow related to the MacOS guard functionality for unknown binaries.
Using:

chmod +x UltraStar\ Play.app && chmod +x UltraStar\ Play.app/Contents/MacOS/UltraStar\ Play 
xattr -dr com.apple.quarantine UltraStar\ Play.app

Resolved the issue.
Maybe including the executable permissions for macOS building process could already solve half the problem.
Unsure how to prevent the attribute flag :-/

@achimmihca
Copy link
Collaborator

We should add installation instructions with this workaround in the wiki.

@achimmihca
Copy link
Collaborator

I've added the workaround to the new installation instructions wiki page.

@achimmihca
Copy link
Collaborator

Re-open. Maybe we find a way to prevent this issue

@basisbit
Copy link
Member

this should be rather easy to fix: have travis set the +x attribute before uploading the file to aws, and when pushing a new release, set the required attribute on the file in a linux/mac environment before uploading the file?

@achimmihca
Copy link
Collaborator

achimmihca commented Nov 28, 2021

This needs re-testing once the MacOS build using the unity-builder GitHub Action is working (see game-ci/unity-builder#295 ) .
Could be that they don't have this issue in the first place.

@gianpaj
Copy link

gianpaj commented Jan 3, 2022

Still happening on macOS Big Sur after adding +x permission:

OUTDATED check wiki instructions

Actual behaviour

Error opening release binary:
image
image

Steps to reproduce

  1. extract StandaloneOSX.zip from https://github.com/UltraStar-Deluxe/Play/releases/download/v0.3.1/StandaloneOSX.zip
  2. chmod +x UltraStar Play.app
  3. Open the UltraStar Play.app
$ ls -l
total 0
drwxrwxr-x@ 3 gpalumbo  2049245171  96  3 May  2021 UltraStar Play.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants