Search Unity

No matching function for call to _UnityAdsCopyString and _NSStringFromIl2CppString

Discussion in 'Unity Ads' started by leandro_trick, Jan 6, 2020.

  1. leandro_trick

    leandro_trick

    Joined:
    Oct 29, 2014
    Posts:
    13
    Using the latest Xcode, Unity 2019.2.17f, latest Advertisement package from Package Manager (3.4.1)

    The methods are in the file UnityAdsUtilities.h but for some reason the files referencing them can't either find NSStringFromIl2CppString or UnityAdsCopyString (referenced in UnityBannerUnityWrapper).

    These look like some kind of bug with the latest Advertisement package. I was able to build successfully after commenting out all the lines that use said methods... but well, that's just a patch for now

    Build in UCB also failing.
     
  2. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    71
    We have addressed this issue and a fix version will be released soon.
     
    leandro_trick likes this.
  3. leandro_trick

    leandro_trick

    Joined:
    Oct 29, 2014
    Posts:
    13
    Thanks @SamOYUnity3D, I assume is going to be on a new version of the package? (3.4.2?)

    Do you have an ETA?
     
  4. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    71
    Yes, this will be fixed in version 3.4.2, there is currently don't have an ETA yet.
     
  5. leandro_trick

    leandro_trick

    Joined:
    Oct 29, 2014
    Posts:
    13
    Thanks @SamOYUnity3D, any workarounds? It's blocking us from doing builds
     
  6. Larry-B

    Larry-B

    Joined:
    Jan 26, 2016
    Posts:
    4
    @leandro_trick we were getting the same error in Unity 2019.2.14 and we managed now to do the builds with Unity 2019.2.0f
     
    leandro_trick likes this.
  7. JohnnyOkami

    JohnnyOkami

    Joined:
    May 22, 2015
    Posts:
    2
    Also having this issue and awaiting fix in 3.4.2..
     
    leandro_trick likes this.
  8. leandro_trick

    leandro_trick

    Joined:
    Oct 29, 2014
    Posts:
    13
    Tried that but unfortunately it didn't work for us. It was worth the try though
     
  9. Valnat

    Valnat

    Joined:
    Jan 8, 2019
    Posts:
    77
    Hi, Unity 2018.3.5f have this troubles
     
  10. Larry-B

    Larry-B

    Joined:
    Jan 26, 2016
    Posts:
    4
    Unfortunately it worked for us only 1 time, I guess it was just luck :)) ...now we came back to the same issue. Any ETA on the fix? @SamOYUnity3D
     
    Last edited: Jan 15, 2020
  11. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    71
    We expect to have 3.4.2 out by the end of the month. As far as workarounds, please try switching from a debug build to a release build to see if it can fix the build errors in Xcode.
     

    Attached Files:

    • 1.png
      1.png
      File size:
      163.8 KB
      Views:
      25
  12. jojo_game_studios

    jojo_game_studios

    Joined:
    Aug 24, 2017
    Posts:
    2
    Set it to release and it did not help
     
  13. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    71
    Sorry to hear that. Please kindly wait for SDK 3.4.2.
     
  14. s1gurd

    s1gurd

    Joined:
    Dec 18, 2017
    Posts:
    1
    We faced the same problem, solved by downgrading Unity Monetization from 3.4.1 to 3.2.0
     
  15. UniDro

    UniDro

    Joined:
    Nov 21, 2014
    Posts:
    20
    In continue to notorious 3.4.0, which was not firing any callbacks. here we are with 3.4.1 which works fine on Android and discourages iOS builds.
    o_O

    Please, we're all waiting for that fix!
     
unityunity