bytedance / Bytedance-UnionAD

MIT License
172 stars 53 forks source link

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

Open JakeCake1 opened 1 year ago

JakeCake1 commented 1 year ago

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

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
chenzhuozy commented 1 year ago

Using the environmental information, we are unable to reproduce this issue. Can you provide a demo?