aws-amplify / amplify-ui-swift-liveness

This repository offers a UI component for Amazon Rekognition Face Liveness, enabling developers to ensure that only authentic users, and not bad actors using spoofs, can access their services.
https://ui.docs.amplify.aws/swift/connected-components/liveness
Apache License 2.0
10 stars 25 forks source link

iOS build failing for RN 0.75.0 - Duplicate symbols #174

Closed singhayush1403 closed 1 month ago

singhayush1403 commented 2 months ago

Describe the bug

I am facing build errors while trying to integrate this library into my RN project. The build fails with hundreds of thousands of duplicate symbols. I have added the package via SPM and was able to import it properly.

Screenshot 2024-09-06 at 11 32 42 AM

Steps To Reproduce

Steps to reproduce the behavior:
1. Create a new react native module with RN version >=0.75.0
2. Add the dependency in podspec using spm_dependency(s,  
  url: 'https://github.com/aws-amplify/amplify-ui-swift-liveness', 
  requirement: {kind: 'upToNextMajorVersion', minimumVersion: '1.1.0'}, 
  products: ['FaceLiveness'] 
) 
3. Build the app

Expected behavior

The build should succeed

Swift Liveness Version

1.3.2

Xcode version

15.0.1 ( 15A507)

Relevant log output

<details>
uplicate symbol '_$s10Foundation4DateV12FaceLivenessE21timestampMillisecondss6UInt64Vvg' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s10Foundation4DateV12FaceLivenessE21timestampMillisecondss6UInt64VvpMV' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC04ovalC0AA04OvalC0CSgvM' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC04ovalC0AA04OvalC0CSgvg' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC04ovalC0AA04OvalC0CSgvpMV' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC04ovalC0AA04OvalC0CSgvpWvd' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC04ovalC0AA04OvalC0CSgvpfi' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC04ovalC0AA04OvalC0CSgvs' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC07initialA020AWSPredictionsPlugin0A9DetectionVSgvM' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC07initialA020AWSPredictionsPlugin0A9DetectionVSgvg' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC07initialA020AWSPredictionsPlugin0A9DetectionVSgvpMV' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC07initialA020AWSPredictionsPlugin0A9DetectionVSgvpWvd' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC07initialA020AWSPredictionsPlugin0A9DetectionVSgvpfi' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC07initialA020AWSPredictionsPlugin0A9DetectionVSgvs' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC09freshnessC0AA09FreshnessC0Cvg' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC09freshnessC0AA09FreshnessC0CvpMV' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC09freshnessC0AA09FreshnessC0CvpWvd' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC09freshnessC0AA09FreshnessC0Cvpfi' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC10ovalExistsSbvM' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC10ovalExistsSbvg' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC10ovalExistsSbvpMV' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC10ovalExistsSbvpWvd' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC10ovalExistsSbvpfi' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC10ovalExistsSbvs' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC11challengeIDSSvM' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC11challengeIDSSvg' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC11challengeIDSSvpMV' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC11challengeIDSSvpWvd' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC11challengeIDSSvpfi' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC11challengeIDSSvs' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC11viewDidLoadyyF' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12previewLayerSo7CALayerCSgvM' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12previewLayerSo7CALayerCSgvg' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12previewLayerSo7CALayerCSgvpMV' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12previewLayerSo7CALayerCSgvpWvd' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12previewLayerSo7CALayerCSgvpfi' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12previewLayerSo7CALayerCSgvs' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12readyForOvalSbvM' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12readyForOvalSbvg' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12readyForOvalSbvpMV' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12readyForOvalSbvpWvd' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12readyForOvalSbvpfi' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC12readyForOvalSbvs' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC13faceGuideRectSo6CGRectVSgvM' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)
duplicate symbol '_$s12FaceLiveness01_B14ViewControllerC13faceGuideRectSo6CGRectVSgvg' in:
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLivenest.o)
    /Users/ayushsingh/Library/Developer/Xcode/DerivedData/facelivenessdetectionexample-climnhhjqdujweeqtkuvkuffwylh/Build/Products/Debug-iphoneos/FaceLivenessDetection/FaceLivenessDetection.framework/FaceLivenessDetection(FaceLiveness.o)

</details>

Is this a regression?

No

Regression additional context

No response

OS Version

iOS 17.5.1

Device

iPhone 12

Specific to simulators

No response

Additional context

No response

5d commented 2 months ago

Hi @singhayush1403 , Thank you for reporting the issue. Our team will work on reproducing the issue and will update you once we have more details.

singhayush1403 commented 2 months ago

Anything on this? We were hoping to integrate it as soon as possible

5d commented 2 months ago

Hi @singhayush1403 ,

I tested using react-native@0.75.3 with the latest liveness version (1.3.2) and was able to build successfully. My dependency was specified with spm_pkg instead of spm_dependency:

spm_pkg(
  "AmplifyUILiveness",
  :url => 'https://github.com/aws-amplify/amplify-ui-swift-liveness',
  :version => '1.3.2',
  :products => ['FaceLiveness']
)

Could you share a sample project that reproduces the issue?

singhayush1403 commented 2 months ago

HI @5d I was trying to make the face detection into a separate React Native Module. Hence I used spm_dependency. You can use this example project : Github repo The pods are installed successfully but if you try to run the example project it fails

phantumcode commented 2 months ago

Thanks for adding the sample project, we'll investigate further.

singhayush1403 commented 1 month ago

@phantumcode @5d Anything on this?

5d commented 1 month ago

Hi @singhayush1403 ,

Thank you for providing your sample project. I was able to reproduce the issue and have spent some time trying to resolve it, but without success. I'm not very familiar with React Native build tools. Have you considered asking the React Native community for help?

jerearaujo03 commented 1 month ago

I have the same issue, It's more related to react-native/expo-modules than to this library, but it could be fixed if this library was distributed using cocoapods. Maybe a solution could be creating a cocoapods wrapper around this library, I've tried to do this but I failed because I'm not very familiar with cocoapods and iOS development.

Related: https://github.com/facebook/react-native/pull/44627#user-content-limitations

edisooon commented 1 month ago

Hi @jerearaujo03 creating a CocoaPods wrapper for the library could be a viable solution to address duplicate symbols. However, please note that we currently do not have plans to distribute the library as a CocoaPod.

github-actions[bot] commented 1 month ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.