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

Can't build the app after adding "Save file picker module" ios implementation #46

Open
retyui opened this issue Jul 28, 2023 · 2 comments

Comments

@retyui
Copy link
Contributor

retyui commented Jul 28, 2023

xcode build fails with:

/MyApp/ios/Pods/Headers/Public/fmt/fmt.modulemap:1:8: Redefinition of module 'fmt'
/MyApp/ios/Pods/Headers/Public/folly/RCT-Folly.modulemap:1:8: Redefinition of module 'folly'

I tried to install pods without flipper NO_FLIPPER=1 RCT_NEW_ARCH_ENABLED=1 npx pod-install and it solve the issue


To reproduce

git clone [email protected]:callstack-internal/bridging-tutorial-davyd.git
cd bridging-tutorial-davyd
git checkout c16068ef5b91e6505056785549cda80faaec285f
cd MyApp
yarn 
yarn ios # fail 
@retyui retyui changed the title Can build the app after adding "Save file picker module" ios implementation Can't build the app after adding "Save file picker module" ios implementation Jul 28, 2023
@mateusz1913
Copy link
Owner

I reproduced it, however when running the app from Xcode, I got different error (don't know if it was because Xcode resolves Node in weird way)

Screenshot 2023-07-28 at 18 28 38

Tbh, I have no idea why the pods are redefined and if it's a problem with Flipper or some other setup. Will leave the issue open for now

@retyui
Copy link
Contributor Author

retyui commented Jul 30, 2023

I reproduced it, however when running the app from Xcode, I got facebook/react-native#37762 (don't know if it was because Xcode resolves Node in weird way)

Oh, that's classic error) when you use Node.js version manager or Node.js was instated using non default path

ls -l /usr/local/bin/node # default 

ls -l /opt/homebrew/bin/node # brew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants