Search Unity

il2cpp_codegen_initialize_method compiler errors

Discussion in 'iOS and tvOS' started by deekpyro, Dec 24, 2015.

  1. deekpyro

    deekpyro

    Joined:
    Oct 16, 2012
    Posts:
    71
    Hey guys -

    I just upgraded a project from Unity 5.2.x to 5.3.1p1 and I'm no longer able to build out to iOS as I get a lot of "Use of undeclared identifier 'il2cpp_codegen_initialize_method'" errors in Xcode.

    Is anyone else having these troubles?
     
    Last edited: Dec 24, 2015
    Panupun_LJC likes this.
  2. theolagendijk

    theolagendijk

    Joined:
    Nov 12, 2014
    Posts:
    117
    Yes, I experience the same after upgrading from 5.3 to 5.3.1p1. il2cpp_codegen_initialize_method and il2cpp_codegen_get_delegate_this. Any help would be greatly appreciated!
     
  3. kashif789us

    kashif789us

    Joined:
    May 2, 2013
    Posts:
    163
    Found any solution?
     
  4. theolagendijk

    theolagendijk

    Joined:
    Nov 12, 2014
    Posts:
    117
    nope
     
  5. kashif789us

    kashif789us

    Joined:
    May 2, 2013
    Posts:
    163
    Filed a bug report. Waiting for their response.
     
  6. orz3

    orz3

    Joined:
    Apr 6, 2015
    Posts:
    2
    Finally I found out this problem is caused by incorrect setup of Unity:
    If you install Unity 5.3.1f1 + iOS support and later on upgrade the editor component to 5.3.1p1 but *not upgrade iOS support* you'll have this code generation problem. Upgrade both Unity Editor and iOS support to 5.3.1p1 will be ok.
     
    LotusBlack and theolagendijk like this.
  7. kashif789us

    kashif789us

    Joined:
    May 2, 2013
    Posts:
    163
    Alright. Thanks
     
  8. theolagendijk

    theolagendijk

    Joined:
    Nov 12, 2014
    Posts:
    117
    Yes! That's it. Would be nice if either the installer or the exporter ( or both! ) could give off a warning when you're working with an editor and iOS component with their versions out of sync.
     
  9. deekpyro

    deekpyro

    Joined:
    Oct 16, 2012
    Posts:
    71
    If this indeed is the issue the editor needs to check and throw up a clear error.
     
  10. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,930
    Thanks both of you for reporting this. I've just tried it myself, and I can confirm the same problem. I've submitted a bug report, so we should be able to correct this issue and prevent building when the version are mismatched.
     
  11. Jakhongir

    Jakhongir

    Joined:
    May 12, 2015
    Posts:
    37
    Hello, how to upgrade tvos support, for Unity 5.3.2f1?
     
  12. Jakhongir

    Jakhongir

    Joined:
    May 12, 2015
    Posts:
    37
    ok, launched download assistant and selected needed tvos build support