Building error after 4.3 update

Can’t build my project after 4.3 update. Console spams 999+ times:

"An asset is marked as dont save, but is included in the build:
UnityEditor.HostView:OnGUI()
"

And

"Building - Failed to write file: sharedassets1.assets
UnityEditor.HostView:OnGUI()"

Any ideas?

Do you have any editor plugins or scripts? There are scripts that use UnityEditor namespace. These scripts are not able to be written into the build.

Nope. And i had no issues on 4.1

First, do you have a backup (I sure hope-so)? Second, are you using external version control (i.e. meta files)? If so, you could try clearing your Library folder and have Unity re-generate it.

I can not build either. Same error. Happens only 6 times tho.

@Gru Seems like moderators removed my answer... For some reasons one of my prefabs in the 'Resources' folder was producing this error. I simply moved it to other folder and everything is ok now.

4 Answers

4

I figured out that one of prefabs in the ‘Resources’ folder was the reason of the error.

I had the same issue and fixed it by moving the prefab from the resources folder and then back.

Could you specify a little more which the error was? I mean I have checked the only 2 prefabs I have and I do not seem to find anything to fix. thank you

My problem was that for some reason one of the prefabs had hideFlags switched.
I compared it in a merge tool with other prefabs and found these lines:

  m_ObjectHideFlags: 13```

And all the other prefabs had **1** as ```m_ObjectHideFlags``` value.
Hope this will help someone.

I did not understand ... where do I find the number to be changed from 13 to 1?

I had the same problem. Somehow m_ObjectHideFlags: 13 ended up in the prefab. Changed it to 1 and everything worked again.

I just moved the keystore file out of the project folder and it fixed the issue. I don’t know how they possibly related to each other, but it did the job!