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
2
Question by cncguy · Jul 31, 2010 at 04:58 AM · macappcompilebinary

Compiling Universal App in windows which won't run on my Mac

Hi I have compiled my application on windows using unity 2.6.1f3 to a mac universal binary. When I copy the app to my mac and try to run it nothing happens at all. I checked the Mac player log file and no errors are generated.

I checked inside the /Contents folder of the app and in the MacOS/ folder. The file in that folder which should be a unix binary file shows up as a Document instead. I suspect this has something to do with it, but am unsure how to change the type of the file or why unity is compiling it this way.

My application works perfectly when compiled for windows or the web player.

Any pointers would be appreciated

Thanks.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by Mike 3 · Jul 31, 2010 at 05:03 AM

There seems to have been a bug in 2.6 which doesn't set the permissions for the executable inside the app

If you do

chmod 755 /PathToYourApp/Contents/MacOS/YourBuildName

from a mac, it should fix it immediately

Comment
Add comment · Show 7 · Share
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
avatar image cncguy · Jul 31, 2010 at 05:09 AM 0
Share

thanks I'll try that now:)

avatar image cncguy · Jul 31, 2010 at 05:13 AM 0
Share

Ooooh thats just awesome! thanks.

avatar image cncguy · Aug 01, 2010 at 08:31 AM 0
Share

Hmmm there are a bunch of other files that should be unix executables too although they don't seem to matter. What is unusual is that if I compile on windows then copy to the $$anonymous$$ac the files show as documents rather than unix executables. But if I then copy back to windows and then back to the $$anonymous$$ac again they show as Unix executables????!!!!:)

avatar image gabeturow · Feb 01, 2013 at 01:05 AM 1
Share

YESSSS! $$anonymous$$ichael, you are an awesome human being. This has been messing with me for months, and I wasn't computer-literate enough to understand your answer. I did some research, came back to your answer, and it worked!

In order to save others some time, I thought I'd explain how to do this long-form.

For those of you who have no idea what "chmod" is, and couldn't understand how this was supposed to be implemented, the suggestion above is to: 1. open your Ter$$anonymous$$al, and type "chmod 755/" 2. then you need to figure out the path to your build, and add that to the file path, which began with "chmod 755/" 3. you have to go all the way to the root ter$$anonymous$$al file inside your .app file. So, right click on your .app build file and select show package contents. Double-click the Contents folder, then $$anonymous$$acOS, and then you'll see the whole path at the bottom of your folder window. If you can't see a path, enable that in your view settings. Transcribe that list of locations into the form described by $$anonymous$$ichael:

chmod 755 /PathToYourApp/Contents/$$anonymous$$acOS/YourBuildName

In practice, the final path I entered into the Ter$$anonymous$$al looked like this:

chmod 755/$$anonymous$$acintosh HD/Users/Gabe/Desktop/Devil's Dating Service the Game $$anonymous$$ac OSX/Contents/$$anonymous$$acOS/Run Tree Run!

Hit return, and it should open your file. Hallelujah!!

avatar image Eric5h5 · Feb 01, 2013 at 01:24 AM 0
Share

You can drag the file into the Ter$$anonymous$$al window after typing "chmod 755 ", which saves having to type out the path.

Show more comments
avatar image
0

Answer by cncguy · Aug 01, 2010 at 08:33 AM

It also seems that if you copy the app from windows to Mac then back to windows and then back to the Mac again the problem goes away. Go Figure?? but it works.

Comment
Add comment · Show 1 · Share
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
avatar image cncguy · Aug 01, 2010 at 10:21 AM 0
Share

Whoever gave me a negative vote - I realise this sounds rediculous but it is actually a fact.

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

JIT compile error on iOS 3 Answers

Can't run game made in Windows on Mac 1 Answer

UnityEditor Pre-compliler Defines for differentiating between Windows & Mac OSX 1 Answer

Mac App Store Validation Question 1 Answer

How do I make an in-app update for my Mac app 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