Search Unity

IOS + admob (cloud fails, local works)

Discussion in 'Unity Build Automation' started by mboog12, Sep 19, 2019.

  1. mboog12

    mboog12

    Joined:
    Oct 4, 2011
    Posts:
    91
    Couldn't find a recent thread that handles this issue specifically, so I've created one. If this is similar to some other thing let me know and I'll delete.

    So unity cloud is failing the build with this errors:
    29188: ❌; Undefined symbols for architecture armv7
    29189: > Symbol: _CLURecordCustomException
    29190: > Referenced from: _IOSImpl_CLURecordCustomException_m859661578 in Bulk_Assembly-CSharp_0.o
    29191: ❌; ld: symbol(s) not found for architecture armv7
    29192: ❌; clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Local build works.
    I'm using unity 2017.4.26
    Architecture is universal
    Framework dependencies for admob files: only default, i haven't added anything new.
    We have xcode 10.2.1 locally and using xcode 10.2 on cloud
    Repository is svn
    This is how my Plugins/IOS folder looks
    upload_2019-9-19_11-1-12.png

    Thanks for any kind of input!

    LE: after more investigating, the issue seems to be coming from Fabric sdk.

    LLE: after removing Fabric, we've stumbled on GameAnalytics with a similar error
    > Symbol: _OBJC_CLASS_$_GameAnalytics
    23927: > Referenced from: objc-class-ref in GameAnalyticsUnity.o

    I think we're not selecting something really basic. Because it seems all plugins fail.
     
    Last edited: Sep 19, 2019
  2. mboog12

    mboog12

    Joined:
    Oct 4, 2011
    Posts:
    91
    The GameAnalytics linker issue is resolved (somehow I've ignored GameAnalyticsUnity.a from repository).
    The Fabric issue is still standing. It fails for all functions that call an external dll like:
    Code (CSharp):
    1. [DllImport("__Internal")]      
    2. [DllImport("__Internal")]
    3.        private static extern void CLURecordCustomException(string name, string reason, string stackTrace);
    4.  
    gives the error
    Code (CSharp):
    1. 29189: > Symbol: _CLURecordCustomException
    2. 29190: > Referenced from: _IOSImpl_CLURecordCustomException_m859661578 in Bulk_Assembly-CSharp_0.o
    For now I've removed fabric, but if you have any idea what could be the culprit it'd help.