Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

error: linker command failed - Unity 2017.3.0f3 + Unity Ads 2.2.0

Discussion in 'iOS and tvOS' started by petak_core, Mar 12, 2018.

  1. petak_core

    petak_core

    Joined:
    Nov 19, 2012
    Posts:
    57
    Hi to all,

    I have issue with iOS build + Unity Ads package, when I try to build very simple test application of Unity Ads with Xcode I'm always getting these linker error:

    Code (csharp):
    1.  
    2. duplicate symbol _UnityAdsCopyString in:
    3.  
    4.     /Users/petak/Library/Developer/Xcode/DerivedData/Unity-iPhone-aflmhnsuschfxpenpatmdnypjbax/Build/Intermediates.noindex/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
    5.  
    6.     /Users/petak/Library/Developer/Xcode/DerivedData/Unity-iPhone-aflmhnsuschfxpenpatmdnypjbax/Build/Intermediates.noindex/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-5A58B2CEE8B214AA.o
    7.  
    8. duplicate symbol _OBJC_CLASS_$_UnityAdsUnityWrapperDelegate in:
    9.  
    10.     /Users/petak/Library/Developer/Xcode/DerivedData/Unity-iPhone-aflmhnsuschfxpenpatmdnypjbax/Build/Intermediates.noindex/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
    11.  
    12.     /Users/petak/Library/Developer/Xcode/DerivedData/Unity-iPhone-aflmhnsuschfxpenpatmdnypjbax/Build/Intermediates.noindex/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-5A58B2CEE8B214AA.o
    13.  
    14. duplicate symbol _OBJC_METACLASS_$_UnityAdsUnityWrapperDelegate in:
    15.  
    16.     /Users/petak/Library/Developer/Xcode/DerivedData/Unity-iPhone-aflmhnsuschfxpenpatmdnypjbax/Build/Intermediates.noindex/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
    17.  
    18.     /Users/petak/Library/Developer/Xcode/DerivedData/Unity-iPhone-aflmhnsuschfxpenpatmdnypjbax/Build/Intermediates.noindex/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-5A58B2CEE8B214AA.o
    19.  
    20. ld: 3 duplicate symbols for architecture arm64
    21.  
    I'm using Unity 2017.3.0f3 + Unity Ads 2.2.0 + Xcode 9.2.
    Do you have any ideas how to solved this error ?

    Thank you for any tips or advice.
     
  2. kgbv

    kgbv

    Joined:
    Jun 5, 2013
    Posts:
    13
    i facing the same Error in unity 2018.4.21f1 . Any solution ?
     
  3. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    505
    Have you guys tried cleaning the project before building?
     
  4. kgbv

    kgbv

    Joined:
    Jun 5, 2013
    Posts:
    13