Closed singhayush1403 closed 1 month 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.
Anything on this? We were hoping to integrate it as soon as possible
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?
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
Thanks for adding the sample project, we'll investigate further.
@phantumcode @5d Anything on this?
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?
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
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.
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.
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.
Steps To Reproduce
Expected behavior
The build should succeed
Swift Liveness Version
1.3.2
Xcode version
15.0.1 ( 15A507)
Relevant log output
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