Search Unity

UnitySendMessage not found in XCode Build

Discussion in 'iOS and tvOS' started by gn_mobilesoft, Nov 25, 2019.

  1. gn_mobilesoft

    gn_mobilesoft

    Joined:
    Nov 21, 2019
    Posts:
    4
    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)
     

    Attached Files:

    Last edited: Nov 25, 2019
  2. tornee

    tornee

    Joined:
    Dec 26, 2016
    Posts:
    2
    did you solve this error ? ( i have same error )
     
  3. gn_mobilesoft

    gn_mobilesoft

    Joined:
    Nov 21, 2019
    Posts:
    4
    not yet :(

    any one from unity community?
     
  4. Fliker

    Fliker

    Joined:
    Apr 25, 2013
    Posts:
    2
    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.
     
  5. r137

    r137

    Joined:
    Mar 12, 2018
    Posts:
    47
    Did you solved this I got the same issue with 6.5.0 sdk?
     
  6. ooomaker

    ooomaker

    Joined:
    Apr 28, 2020
    Posts:
    2
    Did you solved this I got the same issue with VunglePlugin-6.5.3.0?
     
  7. ooomaker

    ooomaker

    Joined:
    Apr 28, 2020
    Posts:
    2
    Can you help me?
     
  8. Vincent-Yao

    Vincent-Yao

    Joined:
    Feb 7, 2017
    Posts:
    1
    The issue should only happen on unity 2019.3 above. Please try below:
    1. Move all contents from /Assets/Editor/Vungle/VungleSDK into a new folder /Assets/Plugins/iOS/

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

      Screen Shot 2020-06-22 at 8.04.23 PM.png



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

    4. Export an iOS project, and manually edit to "../UnityFramework/UnityFramework.h"

    5. Done. The iOS project should work.
     
    r137 likes this.
  9. r137

    r137

    Joined:
    Mar 12, 2018
    Posts:
    47
    This definitely should be fixed by Vungle. Thanks for detailed description.