Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 casperjeff · Jun 18, 2015 at 07:12 PM · il2cppstripping

Did logic for selecting assemblies for UnusedByteCodeStripper2 and il2cpp change?

Project that went from 5.0.1f1 to 5.1.0p1.

Looking at the unity log during build, it appears that most of the managed dlls are NOT being included now in the UnusedByteCodeStripper2 and il2cpp command line calls. The only ones that ARE include Assembly-CSharp-firstpass.dll and Assembly-CSharp.dll. The rest of my plugin DLLs (confirmed they are in the Temp/StagingArea/Data/Managed/ directory) are NOT being picked up.

Did something change? Is there any logic that would cause them NOT to be picked up?

As far as what it is causing - I'm not sure...running into the old "Method not found: 'Default constructor not found ... ctor () of... " issue and trying to narrow down the possibilities.

Any help would be appreciated.

Comment
Add comment · Show 1
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 JoshPeterson · Jun 19, 2015 at 10:52 AM 0
Share

I don't believe that any of the logic about how assemblies are selected to pass to these tools occurred between 5.0.1f1 and 5.1.0p1, at least not on purpose. Note that even if the plugin DLLs are not on the command line, they should still be converted, as both of these tools convert all dependent assemblies. It might be worth submitting a bug report with this project, if possible.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by casperjeff · Jun 24, 2015 at 10:10 PM

So delving down deep into this, some aspect of the 'default' stripping that il2cpp linker uses (regardless if you have stripping level set to 'none) has changed between 5.0.1f1 and 5.1.X. Now, a DLL assembly that we include in our project has seemingly 'unused' types (or even just fields and methods) stripped - causing later use to fail miserably when using reflection and/or CreateInstance. Yikes. Had to fall back on Link.xml file and list all our assembly packages (never could get wildcards to work in that thing!). That was many hours I will never get back. Why does it strip if I tell it not to strip?

Comment
Add comment · Show 1 · 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 JoshPeterson · Jun 25, 2015 at 10:31 AM 0
Share

In order to keep build sizes reasonable, the IL2CPP scripting backend always does the equivalent of byte code stripping, even when the "Stripping Level" setting in the editor is "Disabled". We are considering a real option to build without stripping, but we've not added it yet.

If you can submit a bug report with this project, I am interested to have a look at it, so that we can understand how the difference between 5.0.1f1 and 5.1 impacts stripping in this case.

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.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

MissingMethodException: Default constructor not found for type iOSStepCounter 0 Answers

No Line numbers in stack trace for debug android build using IL2CPP 1 Answer

Asset Bundle code stripping / link.xml not working 1 Answer

Issue with IL2CPP where Default Constructor is possibly stripped from assembly 1 Answer

Object.Instantiate produces error after I strip my iOS project 2 Answers


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