Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate symbols for architecture x86_64 #4946

Closed
4 tasks done
abdifardin opened this issue Jan 24, 2024 · 2 comments · Fixed by #4949
Closed
4 tasks done

Duplicate symbols for architecture x86_64 #4946

abdifardin opened this issue Jan 24, 2024 · 2 comments · Fixed by #4949
Assignees
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working Documentation An issue or a feature-request for our Amplify UI Doc site or AWS Amplify docs React Native An issue or a feature-request for React Native platform

Comments

@abdifardin
Copy link

Before creating a new issue, please confirm:

On which framework/platform are you having an issue?

React Native

Which UI component?

Authenticator

How is your app built?

React Native App

What browsers are you seeing the problem on?

No response

Which region are you seeing the problem in?

US

Please describe your bug.

I just started following your documentation to install and use react native ui authentication using amplify
In the doc, it start with installing the packages
npm install @aws-amplify/ui-react-native aws-amplify @aws-amplify/react-native react-native-safe-area-context amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values react-native-url-polyfill

After running npx pod-install and then running the ios application it keep giving symbol duplication error
I

What's the expected behaviour?

Running without error

Help us reproduce the bug!

Just follow the doc to setup react native ui and run the ios simulator

Code Snippet

// Put your code below this line.

Console log output

No response

Additional information and screenshots

investigated the error and found out this package is included in the initial package installation amazon-cognito-identity-js
And it has conflict with other amplify package which themself include aws cognito js library

I removed the package and installed it again and everything run well

So i suggest to update the doc and remove that unnecessary package

@github-actions github-actions bot added the pending-triage Issue is pending triage label Jan 24, 2024
@calebpollman calebpollman added bug Something isn't working Documentation An issue or a feature-request for our Amplify UI Doc site or AWS Amplify docs React Native An issue or a feature-request for React Native platform Authenticator An issue or a feature-request for an Authenticator UI Component and removed pending-triage Issue is pending triage labels Jan 24, 2024
@calebpollman
Copy link
Member

@abdifardin Thanks for raising this. The install script is out of date and includes an unnecessary dependency, can you try using:

npm install @aws-amplify/ui-react-native aws-amplify @aws-amplify/react-native react-native-safe-area-context @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values react-native-url-polyfill

@abdifardin
Copy link
Author

As I mentioned I found the solution by removing the congnito is and it works without any problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working Documentation An issue or a feature-request for our Amplify UI Doc site or AWS Amplify docs React Native An issue or a feature-request for React Native platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants