Skip to content

iOS Error duplicate symbols for architecture x86_64 #885

@nysamnang

Description

@nysamnang

My project is already integrated with Google MLKit and working as normal. But after installing pod 'TensorFlowLiteTaskVision' and run the project again it produced the issue.

Screen Shot 2022-09-22 at 5 04 27 PM

I figured out that the code of GMLImage.h in TensorFlowLiteTaskVision Framework has exactly the same code of GMLImage.h in MLImage Framework.

So, my question is how to resolve this problem? or any workaround solution?

Here is the issue log:

duplicate symbol 'OBJC_IVAR$_GMLImage._height' in:
/Users/admin/Documents/Project/my-project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage(GMLImage.o)
/Users/admin/Documents/Project/my-project/ios/Pods/TensorFlowLiteTaskVision/Frameworks/TensorFlowLiteTaskVision.framework/TensorFlowLiteTaskVision(GMLImage.o)
duplicate symbol 'OBJC_IVAR$_GMLImage._pixelBuffer' in:
/Users/admin/Documents/Project/my-project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage(GMLImage.o)
/Users/admin/Documents/Project/my-project/ios/Pods/TensorFlowLiteTaskVision/Frameworks/TensorFlowLiteTaskVision.framework/TensorFlowLiteTaskVision(GMLImage.o)
duplicate symbol 'OBJC_IVAR$_GMLImage._sampleBuffer' in:
/Users/admin/Documents/Project/my-project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage(GMLImage.o)
/Users/admin/Documents/Project/my-project/ios/Pods/TensorFlowLiteTaskVision/Frameworks/TensorFlowLiteTaskVision.framework/TensorFlowLiteTaskVision(GMLImage.o)
duplicate symbol 'OBJC_IVAR$_GMLImage._orientation' in:
/Users/admin/Documents/Project/my-project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage(GMLImage.o)
/Users/admin/Documents/Project/my-project/ios/Pods/TensorFlowLiteTaskVision/Frameworks/TensorFlowLiteTaskVision.framework/TensorFlowLiteTaskVision(GMLImage.o)
duplicate symbol 'OBJC_IVAR$_GMLImage._width' in:
/Users/admin/Documents/Project/my-project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage(GMLImage.o)
/Users/admin/Documents/Project/my-project/ios/Pods/TensorFlowLiteTaskVision/Frameworks/TensorFlowLiteTaskVision.framework/TensorFlowLiteTaskVision(GMLImage.o)
duplicate symbol 'OBJC_IVAR$_GMLImage._imageSourceType' in:
/Users/admin/Documents/Project/my-project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage(GMLImage.o)
/Users/admin/Documents/Project/my-project/ios/Pods/TensorFlowLiteTaskVision/Frameworks/TensorFlowLiteTaskVision.framework/TensorFlowLiteTaskVision(GMLImage.o)
duplicate symbol 'OBJC_IVAR$_GMLImage._image' in:
/Users/admin/Documents/Project/my-project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage(GMLImage.o)
/Users/admin/Documents/Project/my-project/ios/Pods/TensorFlowLiteTaskVision/Frameworks/TensorFlowLiteTaskVision.framework/TensorFlowLiteTaskVision(GMLImage.o)
duplicate symbol 'OBJC_CLASS$_GMLImage' in:
/Users/admin/Documents/Project/my-project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage(GMLImage.o)
/Users/admin/Documents/Project/my-project/ios/Pods/TensorFlowLiteTaskVision/Frameworks/TensorFlowLiteTaskVision.framework/TensorFlowLiteTaskVision(GMLImage.o)
duplicate symbol 'OBJC_METACLASS$_GMLImage' in:
/Users/admin/Documents/Project/my-project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage(GMLImage.o)
/Users/admin/Documents/Project/my-project/ios/Pods/TensorFlowLiteTaskVision/Frameworks/TensorFlowLiteTaskVision.framework/TensorFlowLiteTaskVision(GMLImage.o)
ld: 9 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions