Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Google Cast SDK 4.4.4 - Duplicate symbols for architecture arm64

Im trying to update the Google Cast SDK from version 4.3.0 to 4.4.4 this due to the fact that the new version contains some fixes for iOS 13.

Since the update I get these build errors. It seems that both React and the cast SDK are using the same symbol and that's why is returns an error.

I'm trying to understand how to fix this error. I am unable to delete one of these libraries because I need them both and I'm also unable to change the code since they are both third party libraries.

I found this issue tracker and it seems to be a common error starting SDK 4.3.1. It seems to be fixed when using the dynamic framework for the Google Cast SDK but it's not the best situation because it's not available on CocoaPods.

Anyone who experienced a simular problem?

Error:

duplicate symbol 'fLB::FLAGS_nosymbolize_stacktrace' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(examine_stack_7d30b36ef2bc773365435990abbc0852.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(utilities.o)
duplicate symbol 'fLB::FLAGS_symbolize_stacktrace' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(examine_stack_7d30b36ef2bc773365435990abbc0852.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(utilities.o)
duplicate symbol 'fLB::FLAGS_nolog_prefix' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(logging_1c50ea684ad2fde4aa9d3832c43a57ad.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(logging.o)
duplicate symbol 'fLB::FLAGS_log_prefix' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(logging_1c50ea684ad2fde4aa9d3832c43a57ad.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(logging.o)
duplicate symbol 'fLB::FLAGS_noalsologtostderr' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(logging_1c50ea684ad2fde4aa9d3832c43a57ad.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(logging.o)
duplicate symbol 'fLB::FLAGS_alsologtostderr' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(logging_1c50ea684ad2fde4aa9d3832c43a57ad.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(logging.o)
duplicate symbol 'fLB::FLAGS_nologtostderr' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(logging_1c50ea684ad2fde4aa9d3832c43a57ad.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(logging.o)
duplicate symbol 'fLB::FLAGS_logtostderr' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(logging_1c50ea684ad2fde4aa9d3832c43a57ad.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(logging.o)
duplicate symbol 'fLI::FLAGS_nostderrthreshold' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(logging_1c50ea684ad2fde4aa9d3832c43a57ad.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(logging.o)
duplicate symbol 'fLI::FLAGS_stderrthreshold' in:
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(logging_1c50ea684ad2fde4aa9d3832c43a57ad.o)
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(logging.o)
duplicate symbol 'fLI::FLAGS_nov' in:
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(vlog_is_on.o)
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(vlog_is_on_94102400bc1882a13cea0800c3a3a9ef.o)
duplicate symbol 'fLI::FLAGS_v' in:
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(vlog_is_on.o)
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(vlog_is_on_94102400bc1882a13cea0800c3a3a9ef.o)
duplicate symbol 'fLS::FLAGS_vmodule' in:
    /Users/name/Library/Developer/Xcode/DerivedData/tcapp-fxwrsskmvzcadqerqdzaoopqzsqu/Build/Products/Debug-iphoneos/libReact.a(vlog_is_on.o)
    /Users/name/Documents/projects/app_name/ios/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCast(vlog_is_on_94102400bc1882a13cea0800c3a3a9ef.o)

ld: 13 duplicate symbols for architecture arm64
like image 500
Nieck Avatar asked Nov 07 '22 14:11

Nieck


1 Answers

From your errors, Did you try to delete files in DerivedData folder?

Edit : Few days later I fixed duplicate issue by remove "-all_load" in Build Settings > Other Linker Flags

like image 196
Pokotuz Avatar answered Nov 14 '22 22:11

Pokotuz