Undefined symbols for architecture arm64: "_UnityAdsCopyString", referenced from: -[UnityMon

I just create a empty project and import unityAds package from asset store.When I compile in xcode I got a compile error.

Undefined symbols for architecture arm64:

“_UnityAdsCopyString”, referenced from:

-[UnityMonetizationUnityDecisionDelegate placementContentReady:placementContent:] in UnityMonetizationUnityWrapper.o

-[UnityMonetizationUnityDecisionDelegate placementContentStateDidChange:placementContent:previousState:newState:] in UnityMonetizationUnityWrapper.o

-[UnityMonetizationUnityDecisionDelegate unityServicesDidError:withMessage:] in UnityMonetizationUnityWrapper.o

-[UnityAdsUnityWrapperDelegate unityAdsReady:] in UnityAdsUnityWrapper-F393C73EF8048343.o

-[UnityAdsUnityWrapperDelegate unityAdsDidError:withMessage:] in UnityAdsUnityWrapper-F393C73EF8048343.o

-[UnityAdsUnityWrapperDelegate unityAdsDidStart:] in UnityAdsUnityWrapper-F393C73EF8048343.o

-[UnityAdsUnityWrapperDelegate unityAdsDidFinish:withFinishState:] in UnityAdsUnityWrapper-F393C73EF8048343.o

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

system:MacOS Catalina
unity verson: 2020.1.0a17
Xcode verson: 11.3

Does anyone know how to solve this problem?

Did you find a solution? I am facing the same issue.

Me2

Same here.
I’m new to Unity and I was installing and removing different versions of Unity Ads (one from Asset Store, one from Package Manager, one from Services tab)
Right now, I have the ones from the Services tab and Package Manager (3.4.1) enabled, but a variation of this error pops up no matter what the combination is.

MacOS Catalina
Unity 2019.2.9f1
Xcode 11.2.1

This thread seems related

Same problem here. Here under are my settings/steps:

  1. Unity 2019.3.0f3
  2. Enabled Ads in Services tab with Test Mode on and enabled built-in Ads extension.
  3. Updated the ads plugin in Package Manager to 3.4.1.
  4. Built the xcode project, and failed with same error message.
    Undefined symbols for architecture arm64:
    “_UnityAdsCopyString”,

Seems like Unity didn’t “pack” the Ads library to the xcode project somehow.
Disabling service, removing the whole ads plugin and redoing again doesn’t help for my case. Please help.

I had the some problem. I was building Xcode for “Debug”. When I changed to “Release”, it got fixed.

1 Like

@wanannaturalcurl , @pKallv , @simon_unity488 , @vibeguy , @kashif789us

Thanks for reporting this issue. We do have a fix and it should be available in the next version of the package.

Yeah, that is a workaround.

2 Likes

Thanks ap-unity.

So what would be the “correct” way to enable/import the Unity Ads package? I am confused because as of now, different resources point me to different links; some redirect me to the Asset Store version, some to the PackMan version, and some to the Services tab version.

Do they all have the same effect? Should I be using a combination of them? What about the “Enable built-in Ads extension” option in the Ads settings inside the Services tab – what does it do and where can I find information about it?

The future of our package distribution is via Packman Manager. The legacy way of acquiring our package is through Asset Store, though it is still supported. The built-in extension option in the services window is no longer supported and in currently supported versions of Unity no longer even does anything. We apologize for the confusion this presents and are attempting to unify around package manager as being the primary distribution channel for direct integrations of Unity Ads.

We are aware of this bug and will be issuing a fix for it shortly.

1 Like

It is confusing and frustrating sometimes but I appreciate all your support and effort! Thanks.

Everyone else: I created a new project with the Unity Ads package version 3.3.1 and moved all my assets there. Seems to work fine.