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
1
Question by bbeckford · Jun 03, 2014 at 11:13 AM · editormaccompiling4.5

Unity 4.5 Mac OSX Won't Compile Scripts

Hi all, I am a Unity pro subscriber, I also have iOS and Android pro.

Whenever I start Unity (fresh install) on my brand new iMac (OSX 10.9.3) to work on an existing project, Unity hangs on "Compiling Scripts..." and has to be force quit.

Hanging on compiling scripts

Then when launching Unity with the alt key held I can start a new project. But whenever I create a script, c# or .js, the import spinner in the bottom right spins forever and I am unable to press play and test it. Then if I save and close Unity, then reopen, I am back to it hanging on "Compiling Scripts..." and it has to be force quit again.

I have uninstalled and reinstalled Unity several times, I have wiped every mention of Unity I can see off this Mac, cleared the PRAM and reinstalled and I still cannot get around this issue.

I was running Unity fine on my older Mac Mini before, I cannot understand what is causing this issue!

Here is a screenshot of the logs output:

![log][3]

Also - When I return my Unity licence and quit, if I reopen Unity my Pro licence is still intact as if I had never returned it.

I don't know if this is relevant, but if I open manage licences and click "Activate new licence" I get a "Moving file failed" error (see below). If I navigate to "/Library/Application Support/" on my Mac there is no "/Unity/" folder let alone a "Unity_v4.x.ulf" file - should there be??

alt text

Any help would be really greatly appreciated!

Thanks in advance.

EDIT - I have submitted a bug report. I wonder if this a new bug with v4.5?

EDIT 2 - Still getting this issue, Unity completely unusable on my Mac. Should I do a factory reset of my entire Mac??

EDIT 3 - Can anyone shed any light on this? I've exhausted all other methods and I can't see a support phone number for Unity anywhere - I am a paying customer!!

[3]: https://dl.dropboxusercontent.com/u/3615425/Screen%20Shot%202014-06-03%20at%2011.32.17am.png

Comment
Add comment · Show 4
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 Tarlius · Jun 06, 2014 at 08:35 AM 0
Share

What version of OSX are you running? Could be a compatibility problem.

The file is a plain text xml file. You could try putting an empty file there and see what happens?

I've not tried 4.5 myself yet, but I seem to remember seeing the compile problem before but don't remember how I solved it... I think a few people at work are using it on OSX without any problems though.

avatar image Graham-Dunnett ♦♦ · Jun 06, 2014 at 03:56 PM 0
Share

Well, the license error makes me think there is something odd with permissions on the new machine. Are you an ad$$anonymous$$ user?

avatar image bbeckford · Jun 10, 2014 at 09:09 AM 0
Share

@Tarlius - I'm running OS X 10.9.3 on a 27" 3.2 GHz Intel Core i5 i$$anonymous$$ac, it's a week old.

I tried putting an empty file there and that didn't work, thanks for the suggestion.

avatar image bbeckford · Jun 10, 2014 at 09:10 AM 0
Share

@Graham Dunnett - I am an ad$$anonymous$$ user yes. I just ran the permissions verify/repair in Disk Utilities and that hasn't worked either.

4 Replies

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

Answer by bbeckford · Jun 10, 2014 at 12:12 PM

Ok I fixed it

I wiped my Mac HDD and reinstalled Mac OS X and now it seems to be working properly.

I think the reason for it not working in the first place could be that I used the Mac Migration tool to move all my old data & software from my old Mac Mini to the new Mac, causing even reinstalls of Unity to brake.

I guess this was an unknown bug!

Comment
Add comment · 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
0

Answer by danien · Jun 03, 2014 at 02:28 PM

Unity sometimes has problems opening a project if the Library folder is out of date (doesn't match what it's expecting with the Assets folder).

We often see this in our projects after a major Unity update or if there are lots of files being removed/changed after updating from our version control (i.e., changes were made by one person on the team, committed into version control, and another person updates to get the changes).

Since we have meta files turned on, we can just delete the Library folder and let Unity recreate the folder. NOTE: If you don't have meta files turned on and you delete the Library folder, you may lose references to assets in your prefabs/assets (e.g., Missing Monobehaviour, etc).

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 bbeckford · Jun 04, 2014 at 01:39 PM 0
Share

Hi Damien, I tried that and it didn't work, thanks anyway.

The problem is that Unity won't compile a single script, even on a fresh blank project.

avatar image
0

Answer by prophecy_x · Jun 25, 2015 at 12:55 PM

You can do workaround method by running it with root privileged.

 cd /Applications/Unity/Unity.app/Contents/MacOS
 sudo -b ./Unity

Reference: http://forum.unity3d.com/threads/stuck-compiling-scripts-on-launch-4-6-and-yosemite-mac-os-x.282786/

Note that, your problem is not fixed yet. You just change to use root environment, which is different from user environment (where is failed to compile the scripts)

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 ffs_fouad · Sep 29, 2016 at 09:55 PM 0
Share

Nice. That worked for me. Does this suggest that it's a permissions problem?

avatar image
0

Answer by ffs_fouad · Sep 30, 2016 at 02:18 PM

Holy shit. I fixed the problem. It was related to permissions afterall.

So, I rechecked permissions on all folders in on my MacHD, ensured my account had read+write permissions, ensured that the changes were being applied to ALL enclosed items in the folder structure, and FINALLY unity is working again :D

Thanks to prophecy_x for the all-important clue.

Comment
Add comment · 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

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

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Black screen while launching editor on Mac (high sierra) 2 Answers

Unity UI not refresh. 0 Answers

Unity shortcut does not work after compiling code changes 1 Answer

Do scripts in a folder called "Editor" get left out of a build? 1 Answer

[Solved] Scripts compiling very slow 1 Answer


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