Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by OneThree · Jul 17, 2012 at 01:02 AM · macstandalone

Building for Mac on a windows machine corrupts binary?

The symptoms I'm seeing can be found here: http://forum.unity3d.com/threads/143949-Some-Games-Won-t-Launch

Copy/pasting to save you time:

My editor works fine, and when I build my game I can launch the resultant standalone app just fine. I'm using OS X 10.7.4 and Unity Pro 3.5.3.

However, when I try to run a standalone game from someone else it fails to launch. I double-click the game and it comes up in the dock, and the white dock light pulses up and down like normal as it loads, but nothing ever comes up on screen.

If I left-click the app icon in the dock, it instantly disappears. If I right-click it, one of the options is to force quit (which implies that the app has hung).

There's no crash log in my Unity logs folder.

Has anyone ever seen this? If you want an example of a game that's subject to this crashing, you can download Slender: http://www.slendergame.com/index.php?page=download

I'm totally baffled by this, as I've never seen this behavior from any other app (if an app crashes, it usually just disappears from the dock and pops up the Apple crash reporter). It appears to be Unity-specific, but has no useful data/logs/crash report.


Later, I found this link: http://forum.unity3d.com/threads/61182-Game-won-t-open-on-Mac

Copy/paste:

I had this problem twice, and it was due to a permission problem on some files/folders inside the app.

(An app is a folder. To explore it, open the context menu on it inside Finder, and select "Show Package Contents".)

The first time, I didn't have the right to read inside the Contents/Data subfolder of the app. The app was coming from another Mac.

The second time, the executable file inside the Contents/MacOS subfolder of the app was not ... executable! The app was coming from a Windows Unity.

A "chmod 755" on the problematic file or folder, using a terminal, may resolve your problem. But if anyone has a better/easier solution, I'm interested.

... and ...

corruption to mac binaries may happen if compressed on windows

a couple of times i experienced that zipping or raring the app bundle in windows with winrar or 7zip sometimes corrupt the mac binary making osx think its a text file instead of a executable

changing permissions may help in some cases, but to be sure, compress the app bundle in osx with ez7z or rar machine before sharing it

its a very strange and annoying problem


Does anyone have any insight into this problem? I've seen it on multiple builds.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

In-app purchase "Invalid product" on Mac Store build 0 Answers

How to get Mac's dock size? 0 Answers

Mac Standalone mark .app as executable 1 Answer

How to have users submit crash logs for PC/MAC standalone builds? 1 Answer

What settings to get standalone Mac to run on mac mini? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges