-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Unity builds for StandaloneOSX are not runnable. #77
Comments
Hi @dyarosla, Thanks for reporting this. I guess this should be run after the creation of the build, at the end of Feel free to draft a pull request! |
Yeah that would be a good spot for it as the build target is all set up there already. That said, don't know how you'd prefer to separate compile-target specific code. |
So not sure if there's a regression happening, but it was not runnable for me with a recent build ( I needed to
|
@mastef I reproduced your exact same error. I did reproduce the issue where StandaloneOSX's executable needs to be edit: oh, I used unity-ci.com docs and I was using older versions. I just saw related PR which was merged. Pushed game-ci/unity-actions-example@e65839d and I'll see what happens |
I tried again with @webbertakken there seem to be a regression. I'll spin a matrix with all |
Incase it's useful, I ran into this issue today (The application “StandaloneOSX” can’t be opened) and doing |
There was a commit reverted that should solve this problem. Please confirm. |
Should this be fixed in I am seeing this issue as well. |
Yea it should have been, but perhaps there's still something wrong. We had reverted some user permissions as far as I remember, but yea I also think we should give the executable bit to the file prior to uploading if it doesn't already. Accepting PRs for this. |
If you use the default build path it should work. If it doesn't we'd appreciate any help to debug the issue. |
I'm running this command before creating the dmg :
|
None of the above worked for me however I did notice with the downloaded application that it has extra attributes when running
If i run the following command on the file then it opens fine.
|
Should we be removing the extended attributes? What's your view on this? |
OK - I managed to pull the docker images locally and build my project (rather than on gitlab ci) and they have no issue. Looks like we can get around this by Notarizing the builds reference. |
It sounds like distributing a macOS app pretty much now requires going through the |
Feel free to reopen for issues related to not being runnable. |
For reference found this issue on the unity tracker -> https://issuetracker.unity3d.com/issues/macos-builds-now-contain-a-quarantine-attribute and also a mention of it being fixed in https://unity3d.com/unity/beta/2021.1.0b8 |
I just encountered this "The application XXXX.app can't be opened" for the first time building our app on MacOS. The command that worked for me, mentioned here https://issuetracker.unity3d.com/issues/macos-builds-now-contain-a-quarantine-attribute was running both these commands:
Anyone have an idea why this would still be an issue? |
If anyone finds this on Google like I did, there's a more up to date issue discussing this here: game-ci/documentation#262 |
When building for StandaloneOSX, the resultant file uploaded to artifacts isn't runnable.
If you add executable permissions to the artifact the project can then be run.
chmod +x [PATH-TO-ARTIFACT]/StandaloneOSX/StandaloneOSX.app/Contents/MacOS/*
I'm not entirely sure where this would be added in the build pipeline, but I imagine these permissions should be added prior to artifact upload.
The text was updated successfully, but these errors were encountered: