Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 ToxicGue · Jul 10, 2015 at 08:26 PM · xcodeassemblystrippinglinker

IL2CPP stripping help.

Hello there,

Relevant Info: iOS, IL2CPP, stripping disabled, works in Mono2x

Situation:

My emailing script doesn't work because some of the types used in it are being stripped out. The problem is that System.Net.Configuration.MailSettingsSectionGroup's constructor keeps getting stripped regardless if it's in the link.xml or not. I've seen on the help forms that Josh Peterson has said to add it to the link.xml file and he provides a link (http://docs.unity3d.com/Manual/iphone-playerSizeOptimization.html) but apparently I can't do anything right because it's still being stripped. my link.xml which is in my assets folder is also provided below.

Question:

Can someone help me figure out how stop System.Net.Configuration.MailSettingsSectionGroup from being stripped. My link.xml has become a large tangled mess because of my lack of understanding.

Thanks in advance for all you help! have a great day.


Xcode Error:

 MissingMethodException: 
 Method not found: 'Default constructor not found...ctor() of 
 System.Net.Configuration.MailSettingsSectionGroup'.



Link.xml:

 <linker>
     <assembly fullname="System">
         <type fullname="System.Net.Configuration.MailSettingsSectionGroup" perserve="all"/>
         <type fullname="System.Net.Configuration.WebRequestModuleHandler" preserve="all"/>
         <type fullname="System.Net.HttpRequestCreator" preserve="all"/>
         <type fullname="System.Net.FileWebRequestCreator" preserve="all"/>
         <type fullname="System.Net" preserve="all"/>
         <type fullname="System.Net.Mail" preserve="all"/>
         <type fullname="System.Net.Security" preserve="all"/>
         
         <type fullname="System.Net.Configuration.NetSectionGroup" preserve="all"/>
         <type fullname="System.Net.Configuration.SettingsSection" preserve="all"/>
         <type fullname="System.Net.Configuration.Ipv6Element" preserve="all"/>
         <type fullname="System.Net.Configuration.WebRequestModulesSection" preserve="all"/>
         <type fullname="System.Net.Configuration.WebRequestModuleElementCollection" preserve="all"/>
    
         <type fullname="System.ComponentModel.TypeConverter" preserve="all"/>
         <type fullname="System.ComponentModel.ArrayConverter" preserve="all"/>
         <type fullname="System.ComponentModel.BaseNumberConverter" preserve="all"/>
         <type fullname="System.ComponentModel.BooleanConverter" preserve="all"/>
         <type fullname="System.ComponentModel.ByteConverter" preserve="all"/>
         <type fullname="System.ComponentModel.CharConverter" preserve="all"/>
         <type fullname="System.ComponentModel.CollectionConverter" preserve="all"/>
         <type fullname="System.ComponentModel.ComponentConverter" preserve="all"/>
         <type fullname="System.ComponentModel.CultureInfoConverter" preserve="all"/>
         <type fullname="System.ComponentModel.DateTimeConverter" preserve="all"/>
         <type fullname="System.ComponentModel.DecimalConverter" preserve="all"/>
         <type fullname="System.ComponentModel.DoubleConverter" preserve="all"/>
         <type fullname="System.ComponentModel.EnumConverter" preserve="all"/>
         <type fullname="System.ComponentModel.ExpandableObjectConverter" preserve="all"/>
         <type fullname="System.ComponentModel.Int16Converter" preserve="all"/>
         <type fullname="System.ComponentModel.Int32Converter" preserve="all"/>
         <type fullname="System.ComponentModel.Int64Converter" preserve="all"/>
         <type fullname="System.ComponentModel.NullableConverter" preserve="all"/>
         <type fullname="System.ComponentModel.SByteConverter" preserve="all"/>
         <type fullname="System.ComponentModel.SingleConverter" preserve="all"/>
         <type fullname="System.ComponentModel.StringConverter" preserve="all"/>
         <type fullname="System.ComponentModel.TimeSpanConverter" preserve="all"/>
         <type fullname="System.ComponentModel.UInt16Converter" preserve="all"/>
         <type fullname="System.ComponentModel.UInt32Converter" preserve="all"/>
         <type fullname="System.ComponentModel.UInt64Converter" preserve="all"/>
     </assembly>
     
     <assembly fillname="System.Net">
         <type fullname="System.Net.Configuration.MailSettingsSectionGroup" perserve="all"/>
         <type fullname="System.Net.Configuration.WebRequestModuleHandler" preserve="all"/>
         <type fullname="System.Net.HttpRequestCreator" preserve="all"/>
         <type fullname="System.Net.FileWebRequestCreator" preserve="all"/>
         <type fullname="System.Net" preserve="all"/>
         <type fullname="System.Net.Mail" preserve="all"/>
         <type fullname="System.Net.Security" preserve="all"/>
         
         <type fullname="System.Net.Configuration.NetSectionGroup" preserve="all"/>
         <type fullname="System.Net.Configuration.SettingsSection" preserve="all"/>
         <type fullname="System.Net.Configuration.Ipv6Element" preserve="all"/>
         <type fullname="System.Net.Configuration.WebRequestModulesSection" preserve="all"/>
         <type fullname="System.Net.Configuration.WebRequestModuleElementCollection" preserve="all"/>
    
     </assembly>
 
     <assembly fullname="System.Configuration">
         <type fullname="System.Configuration.ExeConfigurationHost" preserve="all"/>
     </assembly>
     
     <assembly fullname="mscorlib">
         <namespace fullname="System.Security.Cryptography" preserve="all"/>
         <namespace fullname="System.Reflection.TargetInvocationException" preserve="all"/>
     </assembly>
 
 </linker>


Script Includes:

 using UnityEngine;
 using System.Collections;
 using System;
 using System.Net;
 using System.Net.Mail;
 using System.Net.Security;
 using System.Security.Cryptography.X509Certificates;
 using UnityEngine.Events;
 using UnityEngine.UI;






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
1

Answer by ToxicGue · Jul 17, 2015 at 08:00 AM

so it turns out that Link.xml != link.xml on a Mac. i simply renamed the file from Link.xml to link.xml and it worked. (note: the link.xml I provided has many problems would not use it)

Comment
Add comment · Show 6 · 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 Eonirma · Aug 11, 2015 at 01:40 PM 0
Share

Thanks for you post about this problem, I currently have the same one, could you tell me (and the commnity) in which part your link.xml is not good ?

Thanks in advance for that !!! :)

avatar image Landern · Aug 11, 2015 at 01:42 PM 0
Share

The problem @ToxicGue is describing is that the "L" in Link was upper case but on a mac there is an expectation that the case is sensitive and needed to be a lower "l" in the word "link", so ins$$anonymous$$d of "Link.xml" it worked fine as "link.xml"

avatar image Eonirma · Aug 11, 2015 at 02:24 PM 0
Share

Thanks @Landern but @ToxicGue is saying in is response that the link.xml he provided has many problems and would not use it

That why I want to know what is the problem inside his link.xml :)

avatar image ToxicGue · Aug 12, 2015 at 11:10 PM 0
Share

@Eonirma the problem with the link.xml file above was that, through my rage I had started to just put namespaces in as assembly names. then, when I got unity to finally find the link.xml file the game would not compile because the linker would look for the namespaces which would not exist in the assembly (or something like that) unity would give me an error saying blank does not exist and could not me preserved (something along that line). To fix this I simply removed the fake assmebly names from the link.xml file. After this everything worked well.

just for completeness, my final link.xml is listed below.

--------------------- NEW link.xml ----------

 <linker>
     <assembly fullname="System">
         <type fullname="System.Net.Configuration.$$anonymous$$ailSettingsSectionGroup" perserve="all"/>
         <type fullname="System.Net.Configuration.WebRequest$$anonymous$$oduleHandler" preserve="all"/>
         <type fullname="System.Net.HttpRequestCreator" preserve="all"/>
         <type fullname="System.Net.FileWebRequestCreator" preserve="all"/>
         <type fullname="System.Net" preserve="all"/>
         <type fullname="System.Net.$$anonymous$$ail" preserve="all"/>
         <type fullname="System.Net.Security" preserve="all"/>
         
         <type fullname="System.Net.Configuration.NetSectionGroup" preserve="all"/>
         <type fullname="System.Net.Configuration.SettingsSection" preserve="all"/>
         <type fullname="System.Net.Configuration.Ipv6Element" preserve="all"/>
         <type fullname="System.Net.Configuration.WebRequest$$anonymous$$odulesSection" preserve="all"/>
         <type fullname="System.Net.Configuration.WebRequest$$anonymous$$oduleElementCollection" preserve="all"/>
         <type fullname="System.Net.Configuration.SmtpSection" preserve="all"/>
         <type fullname="System.Net.Configuration.SmtpNetworkElement" perserve="all"/>
        </assembly>
 
     <assembly fullname="System.Configuration">
         <type fullname="System.Configuration.ExeConfigurationHost" preserve="all"/>
     </assembly>
     
     <assembly fullname="mscorlib">
         <namespace fullname="System.Security.Cryptography" preserve="all"/>
         <namespace fullname="System.Reflection.TargetInvocationException" preserve="all"/>
     </assembly>
 
 </linker>
avatar image Eonirma · Aug 13, 2015 at 10:33 AM 0
Share

Thanks a lot @ToxicGue !! :)

Thanks to you I can advance with my development !!! It's kinda weird that Unity don't explain how to make the black list file, don't you think ?

Show more comments

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

Unity3d for iOS, a lot of linker errors after upgrading to Unity 4.5.5 1 Answer

Only recompile scripts instead of full build? 4 Answers

Unity Xcode - Apple Mech-O Linker Error 1 Answer

xCode build fails after upgrading to 4.5 only on automated build project. 1 Answer

Unity XCode build linker error 0 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