I am having issue in Xcode while I try to build or archive my react-native project. Xcode throwing error like no such file or directory: '/Users/...../DerivedData/myproject/Build/Products/Debug-iphonesimulator/libReactNativeLocalization.a'
.
when I run react-native run-ios
or in release mode react-native run-ios --configuration Release
then it is working perfectly fine but when I try to build or archive it from Xcode then it is throwing error.
- I am using Xcode version 10
- My
react-native
version is 0.57.4 - iOS development target is 9.0
react-native-localization
version is 2.0.3
Tried things which didn't worked for me
Removed node_modules and pods completely and run
npm install
andpod install
didn't worked for me .In menue File --> workspace setting changed build system from Use Shared System to Legacy build system. in this particular case app is build and archived successfully but when I lunch my app then it crashes after splash screen.
Removed Derived Data completely and rebuild again still getting this error.
If I remove
react-native-localization
completely from my project then all the things are working fine and I am able to build and archive the project.