Could not load file or assembly UnityEditor

Hello guys.

Does anybody know how to fix this issue?
Game runs in Unity player without any problems,
but when I try to build the project for IOS it shows exception:

Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'UnityEditor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'UnityEditor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
  at (wrapper managed-to-native) System.MonoCustomAttrs:GetCustomAttributesInternal (System.Reflection.ICustomAttributeProvider,System.Type,bool)
  at System.MonoCustomAttrs.GetCustomAttributesBase (ICustomAttributeProvider obj, System.Type attributeType) [0x00000] in <filename unknown>:0

My bet is that you have the line:

using UnityEditor;

in a file that’s outside the Editor folder (maybe you’ve moved some plugin files?). As it’s actually the Unity Editor API you’re trying to import it should never be able to export it as standalone!

If it’s in one of your scripts you probably mean:

using UnityEngine;

Hope you find it! :slight_smile: