No matching function for call to _UnityAdsCopyString and _NSStringFromIl2CppString

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.

We have addressed this issue and a fix version will be released soon.

1 Like

Thanks @SamOYUnity3D , I assume is going to be on a new version of the package? (3.4.2?)

Do you have an ETA?

Yes, this will be fixed in version 3.4.2, there is currently don’t have an ETA yet.

Thanks @SamOYUnity3D , any workarounds? It’s blocking us from doing builds

@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

1 Like

Also having this issue and awaiting fix in 3.4.2…

1 Like

Tried that but unfortunately it didn’t work for us. It was worth the try though

Hi, Unity 2018.3.5f have this troubles

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

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.

Set it to release and it did not help

Sorry to hear that. Please kindly wait for SDK 3.4.2.

We faced the same problem, solved by downgrading Unity Monetization from 3.4.1 to 3.2.0

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.
:eyes:

Please, we’re all waiting for that fix!

3.4.2 is now available and I still can’t get rid of this error. :confused:

I’m using Unity 2018.4.16f1 with Scripting 3.5 because of a third party extension. XCode 11.3.1 freshly installed.

It somehow started working for me on Cloud Build using Unity 2019.2.18f1
Advertisement 3.4.1

Won’t try updating just in case.

@dave_oak I was able to build a project using the repro steps from this ticket. If your still seeing an issue, can you please open a ticket with the support team or at the very least start a new thread with as much details as possible to your specific case, and provide a sample project that reproduces the issue if you can? Also make sure that your building a new ios project and not trying to append or update your older project after updating the ads sdk.

3.4.2 didn’t fix this issue for me, I get it on Unity 2018.4.x and 2019.x.

same thing here, 3.4.2 did not fix the issue. still getting a bunch of no matching function for
NSStringFromIl2CppString

Edit:
ok, i removed all the old .mm files and import the new ones and it seems to be better