Skip to content

IOS build error duplicate symbols for architecture x86_64 #318

@AlexRAV

Description

@AlexRAV

Your Environment

  • Plugin version: 0.5.0-alpha.47
  • Platform: iOS
  • OS version: 12.1
  • Device manufacturer and model: iPhone 8
  • Running in Simulator: yes
  • React Native version: 0.55.4
  • Plugin configuration options: default from README.md example
  • Link to your project: private project, sorry

Context

I have ejected my expo app from SDK30 and then try to manually install your library as described in readme.
When I trying to build my application for IOS, I am getting the error:

duplicate symbol _OBJC_IVAR_$_DDLogMessage._threadID in:
    /Users/alekseyrebenkov/Library/Developer/Xcode/DerivedData/--------------------bhfjsybpbrvoqjfqvfadebydyiwd/Build/Products/Debug-iphonesimulator/CocoaLumberjack/libCocoaLumberjack.a(DDLog.o)
    /Users/alekseyrebenkov/Library/Developer/Xcode/DerivedData/--------------------bhfjsybpbrvoqjfqvfadebydyiwd/Build/Products/Debug-iphonesimulator/libRCTBackgroundGeolocation.a(CocoaLumberjack.o)
ld: 116 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

In fact, I have more longer error log, I can give it to you, if it really need.

Expected Behavior

The application built without errors.

Actual Behavior

I am getting the error.

Possible Fix

I don't know :(

Steps to Reproduce

I don't sure because of my app was developing a long time and I don't know how exactly reproduce my error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolvedIndicating the issue has been successfully resolved.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions