- Home /
Xcode Error - Unused variable L_5 and L_6 - Hundreds of them..
Hi,
When I run my app in Xcode, I get over 200 warnings that say "Unused variable 'L_5'" or "Unused variable 'L_6'". It says the errors are in the file "GenericMthods0.cpp".
I'm not sure if that's good for my game to have that many errors in it. Should I worry about that or just ignore the warnings? Whether or not the warnings are a big deal, it seems that Unity should still work to decrease the error messages. I get these 200 errors every time I go into Xcode. You can see the unused variable next to the yellow exclamation point in the right panel of this picture:
Answer by phil_me_up · Feb 26, 2016 at 11:33 PM
These aren't errors, just warnings spying don't need to worry too much about them. Whilst they aren't really a good thug, they are not necessarily a band thing either and maybe unavoidable on your end.
If you don't have lots of warnings in your unity console regarding unused variables, then you'll be ok. Even if you do, fixing the probably won't clear these errors, but it is good practice to cleanup unused variables.
It says I have a little over 200 unused variables. All either L_5 or L_6. Does everyone always have that problem? Or is it just my project?
I've seen it before in projects I've built. I couldn't tell you exactly how many warnings off the top of my head though.
Just so you know, L_5, L_6 etc are all variables created during the IL2CPP process. These may represent variables you've created, or variables created by the IL2CPP process to store the results of some operation. Why several are generated and not actually used I don't know without actually seeing the project, and that might not actually give any clues. It'd be interesting to try removing a few from the built project and see if it still compiles / runs correctly though (if they truly are unused, then it should run fine)
Your answer
Follow this Question
Related Questions
Xcode can't open my project 0 Answers
Xcode build & run "innocent" (?) problem 0 Answers
iOs Build and run does not automatically run the game 1 Answer
Missing File Warnings in Xcode 1 Answer
Building For IOS Xcode Issue 0 Answers