Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JakeCake1 opened this issue Aug 3, 2023 · 1 comment
Open

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

JakeCake1 opened this issue Aug 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@JakeCake1
Copy link

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
@JakeCake1 JakeCake1 added the bug Something isn't working label Aug 3, 2023
@chenzhuozy
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants