Skip to content

6 duplicate symbols while trying to build on IOS [BUG] #199

@JakeCake1

Description

@JakeCake1

I have Unity project, where I implemented GoogleAds and some mediation plugins together (Applovin, IronSource, Pangle, UnityAds). After Unity my build fail in Xcode with 6 duplicate symbols on ios, even tried different versions of Ads-Global.

Environmental information

  • SDK name: Ads-Global
  • SDK version: 5.2.0.9
  • Date and time: 2023-08-03
  • iOS minimum version: 12.0

Trying to build project in xcode

Backtrace

duplicate symbol 'CityHash64WithSeeds(char const*, unsigned long, unsigned long long, unsigned long long)' in:
    /Users/appache/Library/Developer/Xcode/DerivedData/Unity-iPhone-gnhvzhwyroxjlbbgndsvwrejsedl/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/Ads-Global/BURelyAdSDK/BURelyAdSDK.framework/BURelyAdSDK(bu_source_strip.o)
    /Volumes/SanDisk Extreme SSD Media/Builds/DIY/Libraries/libiPhone-lib.a(External_HashFunctions_0_4ia5l.o)
duplicate symbol 'CityHash64WithSeed(char const*, unsigned long, unsigned long long)' in:
    /Users/appache/Library/Developer/Xcode/DerivedData/Unity-iPhone-gnhvzhwyroxjlbbgndsvwrejsedl/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/Ads-Global/BURelyAdSDK/BURelyAdSDK.framework/BURelyAdSDK(bu_source_strip.o)
    /Volumes/SanDisk Extreme SSD Media/Builds/DIY/Libraries/libiPhone-lib.a(External_HashFunctions_0_4ia5l.o)
duplicate symbol 'CityHash128(char const*, unsigned long)' in:
    /Users/appache/Library/Developer/Xcode/DerivedData/Unity-iPhone-gnhvzhwyroxjlbbgndsvwrejsedl/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/Ads-Global/BURelyAdSDK/BURelyAdSDK.framework/BURelyAdSDK(bu_source_strip.o)
    /Volumes/SanDisk Extreme SSD Media/Builds/DIY/Libraries/libiPhone-lib.a(External_HashFunctions_0_4ia5l.o)
duplicate symbol 'CityHash64(char const*, unsigned long)' in:
    /Users/appache/Library/Developer/Xcode/DerivedData/Unity-iPhone-gnhvzhwyroxjlbbgndsvwrejsedl/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/Ads-Global/BURelyAdSDK/BURelyAdSDK.framework/BURelyAdSDK(bu_source_strip.o)
    /Volumes/SanDisk Extreme SSD Media/Builds/DIY/Libraries/libiPhone-lib.a(External_HashFunctions_0_4ia5l.o)
duplicate symbol 'CityHash32(char const*, unsigned long)' in:
    /Users/appache/Library/Developer/Xcode/DerivedData/Unity-iPhone-gnhvzhwyroxjlbbgndsvwrejsedl/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/Ads-Global/BURelyAdSDK/BURelyAdSDK.framework/BURelyAdSDK(bu_source_strip.o)
    /Volumes/SanDisk Extreme SSD Media/Builds/DIY/Libraries/libiPhone-lib.a(External_HashFunctions_0_4ia5l.o)
duplicate symbol 'CityHash128WithSeed(char const*, unsigned long, std::__1::pair<unsigned long long, unsigned long long>)' in:
    /Users/appache/Library/Developer/Xcode/DerivedData/Unity-iPhone-gnhvzhwyroxjlbbgndsvwrejsedl/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/Ads-Global/BURelyAdSDK/BURelyAdSDK.framework/BURelyAdSDK(bu_source_strip.o)

Podfile content

source 'https://cdn.cocoapods.org/'
source 'https://github.com/CocoaPods/Specs'

platform :ios, '12.0'

target 'UnityFramework' do
  pod 'Firebase/Analytics', '10.11.0'
  pod 'Firebase/Core', '10.11.0'
  pod 'Firebase/DynamicLinks', '10.11.0'
  pod 'Firebase/RemoteConfig', '10.11.0'
  pod 'GoogleMobileAdsMediationAppLovin', '11.9.0.0'
  pod 'GoogleMobileAdsMediationIronSource', '7.3.0.0.0'
  pod 'GoogleMobileAdsMediationPangle', '5.2.0.9.0'
  pod 'GoogleMobileAdsMediationUnity', '4.7.1.0'
  pod 'Google-Mobile-Ads-SDK', '~> 10.5'
  pod 'myTrackerSDK', '3.0.4'
  pod 'YandexMobileAds', '5.0.2'
  pod 'YandexMobileMetrica', '4.2.0'
end
target 'Unity-iPhone' do
end
use_frameworks! :linkage => :static

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions