PlayMaker Help & Tips > iOS Help

Fixing IL2CPP linking errors[SOLVED]

<< < (20/20)

dev08:
Hi guys,

I'm having issues with stripping with Unity 2019.4.3f1 on ios.

The code stripping level is set to Medium.

Here is a portion of XCode console output.

--- Code: ---MissingMethodException: Default constructor not found for type HutongGames.PlayMaker.Actions.MissingAction
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x00000] in <00000000000000000000000000000000>:0
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0
--- End code ---

link.xml files ued by Unity when building the code.


--- Code: ---<linker>
  <assembly fullname="mscorlib">
    <namespace fullname="System.Security.Cryptography" preserve="all" />
  </assembly>
  <assembly fullname="System">
    <namespace fullname="System.Configuration" preserve="all" />
    <namespace fullname="System.ComponentModel" preserve="all" />
    <namespace fullname="System.Net.Configuration" preserve="all" />
  </assembly>
  <assembly fullname="UnityEngine">
    <namespace fullname="UnityEngine.RectTransform" preserve="all" />
  </assembly>
  <assembly fullname="ConditionalExpression">
    <type fullname="PlayMaker.ConditionalExpression.ConditionalExpression" preserve="all" />
  </assembly>
  <assembly fullname="PlayMaker">
    <type fullname="PlayMakerFSM" preserve="all" />
  </assembly>
</linker>
--- End code ---

FSM State that causes this issue attached below.

Thanks in advance.

jeanfabre:
Hi,

 that's very odd, first time I see this error.

Do you get this only when stripping is set to medium?

Bye,

 Jean

dev08:
nope, it happens with High as well, only when stripping is low it works as expected.

jeanfabre:
Hi,

 something is odd here, MissingAction should not be required to begin with, it's something used during editing when a missing action is detected.

 Do you have errors in the playmaker editor?  Is it saying that you are missing some actions? if yes, fix that first ( clean up or import the missing actions) and try again.

Let me know how it goes,

Bye,

 Jean

Navigation

[0] Message Index

[*] Previous page

Go to full version