UnitySendMessage not found in XCode Build

Hi
I have implemented Vungle SDK and VungleManager calls UnitSendMessage function from its .mm file.
but the Error says UnitySendMessage not found

I searched form I came to know that libiPhone-lib.a contains this function. but I have this framework included in my project please see attached image.
But instead of that I am getting this error

Any thing I am doing wrong?

ld: warning: Could not find or use auto-linked framework ‘VNGMoatMobileAppKit’
Undefined symbols for architecture armv7:
“UnitySendMessage(char const*, char const*, char const*)”, referenced from:
-[VungleManager vungleWillShowAdForPlacementID:] in VungleManager.o
-[VungleManager vungleAdPlayabilityUpdate:placementID:error:] in VungleManager.o
-[VungleManager vungleDidCloseAdWithViewInfo:placementID:] in VungleManager.o
-[VungleManager vungleSDKLog:] in VungleManager.o
-[VungleManager placementPrepared:withBidToken:] in VungleManager.o
-[VungleManager vungleCreative:readyForPlacement:] in VungleManager.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

did you solve this error ? ( i have same error )

not yet :frowning:

any one from unity community?

In our case there was the same error message ld: warning: Could not find or use auto-linked framework ‘VNGMoatMobileAppKit’, but the next part was different
(
Undefined symbols for architecture armv7:
“___isPlatformVersionAtLeast”, referenced from:
___38+[IMSDKCommonUtil getWebViewUserAgent]_block_invoke in InMobiSDK(IMSDKCommonUtil.o)
),
and the problem was in Xcode version 10.x, after upgrading to the last 11.x this problem was solved.

Did you solved this I got the same issue with 6.5.0 sdk?

Did you solved this I got the same issue with VunglePlugin-6.5.3.0?

Can you help me?

The issue should only happen on unity 2019.3 above. Please try below:

  • Move all contents from /Assets/Editor/Vungle/VungleSDK into a new folder /Assets/Plugins/iOS/

  • Make sure all moved contents are imported for iOS through the Editor like below

  • In /Assets/Editor/Vungle/VunglePostBuilder.cs change line 48 to var pathToNativeCodeFiles = Path.Combine( Application.dataPath, “Plugins/iOS/VungleSDK” );

  • Export an iOS project, and manually edit to “…/UnityFramework/UnityFramework.h”

  • Done. The iOS project should work.

1 Like

This definitely should be fixed by Vungle. Thanks for detailed description.