Search Unity

Failed to load AOT module

Discussion in 'iOS and tvOS' started by Troy-Dawson, Apr 8, 2010.

  1. Troy-Dawson

    Troy-Dawson

    Joined:
    Nov 2, 2009
    Posts:
    120
    Out of the blue my iPad project is terminating on launch. It was working this morning, and I haven't changed anything ?

    -> applicationDidFinishLaunching()
    Failed to load AOT module '/var/mobile/Applications/F18A0925-58EF-4833-A569-7DF1E98BF63C/touchfootball.app/Data/Boo.Lang.dll.dylib' in aot-only mode.

    I was seeing this error with first pass.dll.dylib but after cutting down the project to the bare minimum of assets this is what's left.

    Grrr. I'm not even using boo!

    Filing a bug next.
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    if you have a single js file in your project your are actually using boo / parts of it as JS relies on boo.
     
  3. Troy-Dawson

    Troy-Dawson

    Joined:
    Nov 2, 2009
    Posts:
    120
    Thanks. I'm using the dual-joystick js. Deleting that, removing the file from the bundle, trashing the iPhone OS project -- still getting this error.

    I've restarted the device and will reboot my dev system once the 4.0 SDK finishes DLing.
     
  4. Troy-Dawson

    Troy-Dawson

    Joined:
    Nov 2, 2009
    Posts:
    120
    I reinstalled the iPad OS 3.2 and now my project works again.

    Odd, but hey.
     
  5. mystaticself

    mystaticself

    Joined:
    Mar 13, 2009
    Posts:
    5
    Did you reinstall the OS on your iPad or reinstall the SDK?

    I'm getting this same error and can't seem to shake it. Reinstalled the OS 4 SDK but no luck.
     
  6. mystaticself

    mystaticself

    Joined:
    Mar 13, 2009
    Posts:
    5
    Well, my issue went away after downgrading the iPhone OS 4 SDK to 3.2 and rebooting my machine.
     
  7. Deleted User

    Deleted User

    Guest

    I just ran into something similar, but with CSharp.dll, after successfully releasing several other iPhone+iPad projects.

    Code (csharp):
    1.  
    2. 2010-04-25 20:40:48.812 FuguType[4097:207] -> registered unity classes
    3. 2010-04-25 20:40:48.823 FuguType[4097:207] -> registered mono modules
    4. -> applicationDidFinishLaunching()
    5.  Failed to load AOT module '/var/mobile/Applications/BFAE1830-C7A2-4857-A11D-2470F67BB965/FuguType.app/Data/Assembly - CSharp.dll.dylib' in aot-only mode.
    6.  
     
  8. Troy-Dawson

    Troy-Dawson

    Joined:
    Nov 2, 2009
    Posts:
    120
    I really don't know if my reinstalling the OS on the device was necessary.

    I guess the first thing to do is quit everything and toss/put aside the existing xcode project and let unity rebuild it from scratch.

    I've been running the OS 4 SDK with no problems now.
     
  9. Brady

    Brady

    Joined:
    Sep 25, 2008
    Posts:
    2,474
    I had this (the Boo version) and deleting the existing install of my App on my device fixed it. Next time I built the project and it installed to the device, it worked.

    Go figure....
     
  10. Deleted User

    Deleted User

    Guest

    That worked for me, too. Thanks!
     
  11. nawash

    nawash

    Joined:
    Jan 29, 2010
    Posts:
    166
  12. neoRiley

    neoRiley

    Joined:
    Dec 12, 2008
    Posts:
    162
    worked for me as well - deleted the app on the iPad, re-installed... bam, happy days.
     
  13. AnomalusUndrdog

    AnomalusUndrdog

    Joined:
    Jul 3, 2009
    Posts:
    1,553
    I can confirm this worked for me too
     
  14. yltang

    yltang

    Joined:
    Nov 20, 2010
    Posts:
    28
    Yes, it is also worked for me. :)
     
  15. Mike1252

    Mike1252

    Joined:
    Jun 15, 2014
    Posts:
    2
    Will this cause users in the app store who upgrade the app to experience a crash until they re-install?
     
  16. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
    I have only seen this issue when building to device via Xcode. e.g. no issues with TestFlight distribution.