• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by daveinpublic · Feb 26, 2016 at 09:33 PM · iosvariablexcodeunused

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:

alt text

screen-shot-2016-02-26-at-33226-pm.png (444.6 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image daveinpublic · Feb 27, 2016 at 12:29 AM 0
Share

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?

avatar image phil_me_up daveinpublic · Feb 27, 2016 at 11:30 AM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

45 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Xcode can't open my project 0 Answers

App size increased when ported to IOS 0 Answers

iOS Build Integer literal is too large to be represented in a signed integer type 0 Answers

Terminated due to memory issue at start - in Xcode 7 running iOS 2 Answers

How to integrate AdMob with iOS? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges