Author Topic: iOS compiler problem  (Read 3314 times)

fredrik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
iOS compiler problem
« on: November 27, 2014, 03:53:08 AM »
Hey guys,

Im getting lots of
  1. 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
« Last Edit: November 27, 2014, 04:04:14 AM by fredrik »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: iOS compiler problem
« Reply #1 on: November 27, 2014, 08:49:57 PM »
Why would you remove the editor folders? There is no need to do this.

fredrik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: iOS compiler problem
« Reply #2 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)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: iOS compiler problem
« Reply #3 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?

fredrik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: iOS compiler problem
« Reply #4 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:




ryan

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 90
    • View Profile
Re: iOS compiler problem
« Reply #5 on: December 01, 2014, 01:28:39 PM »
Is there a space after Editor in those paths?  If so, that's your problem.

dilshod

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 7
  • Posts: 14
    • View Profile
Re: iOS compiler problem
« Reply #6 on: December 01, 2014, 10:57:33 PM »
Put your NGUI folder into Assets folder, not Assets/Plugins.

fredrik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: iOS compiler problem
« Reply #7 on: December 02, 2014, 04:58:12 AM »
Put your NGUI folder into Assets folder, not Assets/Plugins.

That worked better. Cheers! :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: iOS compiler problem
« Reply #8 on: December 02, 2014, 12:23:57 PM »
"Editor" folder should never be inside Plugins. http://www.tasharen.com/forum/index.php?topic=6.0