question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unity builds for StandaloneOSX are not runnable.

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
davidmfinolcommented, Mar 14, 2021

It sounds like distributing a macOS app pretty much now requires going through the codesign process. I believe the initial issue (builds not runnable without chmod +x path/to/executable) has been fixed, so maybe we should close this issue and open a new issue for documentation about macOS distribution? We may want to create a docs/github/deployment/macos page that goes into codesign, notarization, and maybe even fastlane for mac apps.

1reaction
Zetoniacommented, Mar 11, 2021

None of the above worked for me however I did notice with the downloaded application that it has extra attributes when running

ls -la
drwxr-xr-x@ 3 <Zetonia>  staff    96 11 Mar 01:26 zetonia.app
	com.apple.quarantine	  57 

If i run the following command on the file then it opens fine.

xattr -d com.apple.quarantine zetonia.app
Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems With MacOS Cross Platform Build - Unity Forum
Hello, so I'm attempting to build my game for my friend who uses a mac and found that he couldn't run the file...
Read more >
Scripting API: BuildOptions.BuildScriptsOnly - Unity - Manual
The script builds the entire Project initially. After you've run the script for the first time, you can use the script to only...
Read more >
unity3d - Unity Build - Standalone file - Stack Overflow
Basically... You need to pack (age) the build of the app. (Note the boxing app in the linked tutorial is just an example....
Read more >
Local Build run but produce no builds (#165) · Issues - GitLab
ci/for_local_build.sh # BUILD_TARGET=StandaloneOSX . ... Actual Result: There is no build under UNITY_DIR/Builds/BUILD_TARGET.
Read more >
Builder - GameCI
GameCI does not acquire nor store your Unity email or password. They are required for reactivating the license during build and test steps....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found