Support => NGUI 3 Support => Topic started by: fredrik on November 27, 2014, 03:53:08 AM
Title: iOS compiler problem
Post by: fredrik on November 27, 2014, 03:53:08 AM
Hey guys,
Im getting lots of
error CS0246: The type or namespace name `UnityEditor' could not be found
from the code in the repo using unity 4.6 when building for iOS.
Is it me or you ? :)
(I did remove the editor folders to make it compile for iOS, but should that be done every time you need to compile ?)
Fredrik
Title: Re: iOS compiler problem
Post by: ArenMook on November 27, 2014, 08:49:57 PM
Why would you remove the editor folders? There is no need to do this.
Title: Re: iOS compiler problem
Post by: fredrik on November 28, 2014, 04:06:41 AM
Because it won't compile for iOS if don't. (I'm using the pro version of ngui)
Title: Re: iOS compiler problem
Post by: ArenMook on November 30, 2014, 05:10:18 AM
Editor folder only compiles while you are in the editor. It's only used by Unity. What's preventing you from compiling it from iOS?
Title: Re: iOS compiler problem
Post by: fredrik on December 01, 2014, 03:51:04 AM
I get the errors when i make a build for ios. I had an older version of ngui from git hub which worked fine, but when i now pulled the latest I'm getting these errors. When i remove the editor folders it's all good and compiles and run as it should :)
See the attached screenshots:
(http://i.imgur.com/X6NNnpj.png)
(http://i.imgur.com/NsLo8Gm.png)
Title: Re: iOS compiler problem
Post by: ryan on December 01, 2014, 01:28:39 PM
Is there a space after Editor in those paths? If so, that's your problem.
Title: Re: iOS compiler problem
Post by: dilshod on December 01, 2014, 10:57:33 PM
Put your NGUI folder into Assets folder, not Assets/Plugins.
Title: Re: iOS compiler problem
Post by: fredrik on December 02, 2014, 04:58:12 AM