Search Unity

Runtime crash: System.TypeLoadException

Discussion in 'iOS and tvOS' started by increpare, Sep 25, 2011.

  1. increpare

    increpare

    Joined:
    Nov 17, 2010
    Posts:
    151
    Working on porting a game to iOS. When I enter one of the levels, I get the following runtime crash error

    "Unhandled Exception: System.TypeLoadException: Could not load type 'BigWallGlass'."

    I thought I had been careful about making sure the type was referenced (I have this script attached to something in the title screen - http://pastebin.com/wPpQdGjW , and also searching for BigWallGlass in the built xcode project returns mentions of all of its methods in Assembly-CSharp.dll).

    So, any thoughts? I've had a look around online and haven't been able to find any solution to this.
     
  2. increpare

    increpare

    Joined:
    Nov 17, 2010
    Posts:
    151
    Got around it by manually populating a Dictionary<string,Type> and making an equivalent function to Type.GetType. No big deal, but...a bit mysterious a problem.
     
    Last edited: Sep 26, 2011