Search Unity

[Solved] Unity IAP Xcode Linker Error - duplicate symbol _Log (with OneSignal)

Discussion in 'Unity IAP' started by maxthecat, Dec 11, 2015.

Thread Status:
Not open for further replies.
  1. maxthecat

    maxthecat

    Joined:
    May 26, 2014
    Posts:
    29
    duplicate symbol _Log in:

    /Users/desmondfernando/Library/Developer/Xcode/DerivedData/Unity-iPhone-efgwwcfyzefldvevwokjtglgzyrn/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityPurchasing.o
    /Users/desmondfernando/maxthecatstudios/Unity5/iOS/WS/Build/WS/Libraries/Plugins/iOS/libOneSignal.a(OneSignal.o)

    ld: 1 duplicate symbol for architecture arm64



    Managed to do temp fix renaming Log in Assets/Plugins/UnityPurchasing/iOS/UnityPurchasing.m

    Would it be possible to fix this so I won't have to rename everytime I update Unity IAP?

    Thanks
     
  2. gdeglin

    gdeglin

    Joined:
    Mar 7, 2013
    Posts:
    78
    Hi, I help work on OneSignal. We'll look into this now and let you know what we find.
     
  3. gdeglin

    gdeglin

    Joined:
    Mar 7, 2013
    Posts:
    78
    We found the issue and we'll release a fix next week. Until then your workaround is a good solution.
     
    maxthecat likes this.
  4. nicholasr

    nicholasr

    Joined:
    Aug 15, 2015
    Posts:
    183
    @maxthecat Yes. We'll look into renaming globally namespaced symbols for an upcoming release.

    (And thanks to @gdeglin for taking the lead on conflict-free-naming!)
     
    maxthecat, JKasten and mpinol like this.
  5. JKasten

    JKasten

    Joined:
    Apr 11, 2013
    Posts:
    23
    maxthecat likes this.
Thread Status:
Not open for further replies.