Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity 5.6.3p4 - Issues when Building Xcode Project

Discussion in 'iOS and tvOS' started by The_Devil, Sep 27, 2017.

  1. The_Devil

    The_Devil

    Joined:
    Jun 6, 2015
    Posts:
    36
    I have a Unity project that the following third party SDKs:
    - Google Admob
    - Facebook Audience Network
    - Game Analytics
    - Ad Colony
    - Google Play Games (disabled for iOS using the flag setting in Unity Build Settings)

    When I export from Unity to Xcode and do a generic build, I get the following errors:

    Undefined symbols for architecture armv7:

    "_getSDKVersionOnNative", referenced from:

    _IosExtension_getSDKVersionOnNative_m1433419449 in Bulk_Assembly-CSharp-firstpass_0.o

    (maybe you meant: _IosExtension_getSDKVersionOnNative_m1433419449)

    "_notifyNative", referenced from:

    _IosExtension_notifyNative_m1464187092 in Bulk_Assembly-CSharp-firstpass_0.o

    (maybe you meant: _IosExtension_notifyNative_m1464187092)

    ld: symbol(s) not found for architecture armv7

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

    I have tried the following:

    - Enable modules for Objective c and c++
    - Enable/disable bitcode
    - Enable/disable code stripping.
    - while exporting the project from unity, have tried both Mono and IIL2CPP with combinations of .Net 2.0 and .Net 2.0 Subset

    But nothing seems to be fixing the issue.
    Any help in solving this error would be appreciated.


    testGame
     
  2. Drewster

    Drewster

    Joined:
    May 8, 2017
    Posts:
    4
    Hello! Were you able to resolve this?

    I have had the same types of errors -- see blow:

    Undefined symbols for architecture arm64:

    "__flurrySetUserId", referenced from:
    _FlurryAnalytics__flurrySetUserId_m3602101831 in Bulk_Assembly-CSharp-firstpass_1.o
    (maybe you meant: _FlurryAnalytics__flurrySetUserId_m3602101831)


    "__flurryLogEventWithParameters", referenced from:
    _FlurryAnalytics__flurryLogEventWithParameters_m2759751532 in Bulk_Assembly-CSharp-firstpass_1.o
    (maybe you meant: _FlurryAnalytics__flurryLogEventWithParameters_m2759751532)

    [... there are more of these...]

    "_VungleSDKVersion", referenced from:
    +[TracebackVungle argsForType] in libVungleTracebackIntegration.a(TracebackVungle.o)

    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)


    I have tried enabling modules, bitcode on/off, code stripping on/off, il2cpp/mono, .net/.net-subset as well.
    I've also tried changing target platform from armv7 to standard architectures, which switched the error from saying 'armv7' to 'arm64', but that's it.

    I am building with Unity 2017.1.2f1 under Xcode 9, MacOS High Sierra.
     
  3. The_Devil

    The_Devil

    Joined:
    Jun 6, 2015
    Posts:
    36
    Hi,

    These are issues related to the third party sdks that you have added - Flurry and Vungle. See if their libraries have been added to the Xcode project during the build. If not, then see their instructions again, to integrate it properly.
     
  4. ArghyaGhoshGodSpeed

    ArghyaGhoshGodSpeed

    Joined:
    Jan 14, 2019
    Posts:
    2

    @The_Devil did you find the solution to this problem ??

    I am facing the exact same issue .
     
  5. The_Devil

    The_Devil

    Joined:
    Jun 6, 2015
    Posts:
    36
    To be really honest, I dont remember the fix at this point.
     
  6. ArghyaGhoshGodSpeed

    ArghyaGhoshGodSpeed

    Joined:
    Jan 14, 2019
    Posts:
    2
    OK Thanks