You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AppMetrica is working great in my project. Now I need to add Elastic APM Agent. I tried adding it through SPM from here: https://github.com/elastic/apm-agent-ios (version 1.0.0). But when I build the project (doesn't matter if it's debug or release mode), I get these errors:
duplicate symbol '_protobuf_c_buffer_simple_append' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_empty_string' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_enum_descriptor_get_value' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_enum_descriptor_get_value_by_name' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_check' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_descriptor_get_field' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_descriptor_get_field_by_name' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_free_unpacked' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_get_packed_size' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_init' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_pack' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_pack_to_buffer' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_unpack' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_service_descriptor_get_method_by_name' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_service_destroy' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_service_generated_init' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_service_invoke_internal' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_version' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_version_number' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o ld: 19 duplicate symbols for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Since I'm using Firebase and other Objective-C packages in the project, I have these "other linker flags" set up:
For debug builds: -ObjC -ld_classic -Wl
For release builds: just -ObjC
π Reproducing the issue
Add AppMetrica to the project via SPM (it should compile fine)
Add at least -ObjC flag to "Other Linker Flags" in project's build settings
We've reassessed the issue and realized it's more intricate than we initially thought, requiring substantial work beyond a quick fix. Unfortunately, this means a resolution won't be ready for the next release. We're dedicated to finding a solid solution and appreciate your patience.
GLinnik21
added
installation
For issues that arise during the installation process of the SDK via package managers
and removed
bug
Something isn't working
labels
Apr 8, 2024
π AppMetrica SDK Version
5.1.0
π οΈ Xcode Version
Version 15.3 (15E204a)
π± Device Information
iPhone 15 simulator iOS 17.4 (21E213)
βοΈ Installation Method
Swift Package Manager
π Description
AppMetrica is working great in my project. Now I need to add Elastic APM Agent. I tried adding it through SPM from here: https://github.com/elastic/apm-agent-ios (version 1.0.0). But when I build the project (doesn't matter if it's debug or release mode), I get these errors:
duplicate symbol '_protobuf_c_buffer_simple_append' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_empty_string' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_enum_descriptor_get_value' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_enum_descriptor_get_value_by_name' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_check' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_descriptor_get_field' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_descriptor_get_field_by_name' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_free_unpacked' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_get_packed_size' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_init' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_pack' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_pack_to_buffer' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_message_unpack' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_service_descriptor_get_method_by_name' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_service_destroy' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_service_generated_init' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_service_invoke_internal' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_version' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o duplicate symbol '_protobuf_c_version_number' in: hidden/Build/Products/Debug-iphonesimulator/AppMetrica_Protobuf.o hidden/Build/Products/Debug-iphonesimulator/CrashReporter.o ld: 19 duplicate symbols for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Since I'm using Firebase and other Objective-C packages in the project, I have these "other linker flags" set up:
π Reproducing the issue
π Relevant AppMetrica Log Output or Crash Logs
No response
π¦ Attach Package.resolved (Swift Package Manager Users)
No response
π« Attach Podfile.lock (CocoaPods Users)
No response
The text was updated successfully, but these errors were encountered: