Failed to create a new project through ignite.
ignite new chart --max
cd chart
react-native run-ios
❌ error: could not read data from '/Users/michaelxu/learn-project/learn-rn/chart/node_modules/react-native-i18n/RNI18nTests/Info.plist': The file “Info.plist” couldn’t be opened because there is no such file.
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze Base/RCTModuleMethod.mm normal x86_64
(1 command with analyzer issues)
The following build commands failed:
ProcessInfoPlistFile /Users/michaelxu/learn-project/learn-rn/chart/ios/build/Build/Products/Debug-iphonesimulator/RNI18nTests.xctest/Info.plist RNI18nTests/Info.plist
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/chart.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/chart.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
platform darwin
arch x64
cpu 8 cores Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
directory /Users/michaelxu/learn-project/learn-rn/chart
JavaScript
node 8.11.1 /Users/michaelxu/.nvm/versions/node/v8.11.1/bin/node
npm 5.6.0 /Users/michaelxu/.nvm/versions/node/v8.11.1/bin/npm
yarn 1.6.0 /Users/michaelxu/.nvm/versions/node/v8.11.1/bin/yarn
React Native
react-native-cli 2.0.1
app rn version 0.55.1
Ignite
ignite 2.1.0 /Users/michaelxu/.nvm/versions/node/v8.11.1/bin/ignite
Android
java 1.8.0_131 /usr/bin/java
android home - /Users/michaelxu/Library/Android/sdk
iOS
xcode 9.3
This is an issue with ignite-i18n which uses an outdated version of react-native-i18n (v1.0.0 - Jan 2017) where the latest is v2.0.12. It doesn't happen if you don't add the i18n option.
please help resolve the issue
Run yarn add [email protected]
Rerun react-native run-ios
And also re-link and re-run.
And also re-link and re-run.
(newbie here)
How do you do that ?
Also, don't running yarn add [email protected] only adds it to the current project ?
How do you update it in ingnite's bundle ?
~yarn add [email protected] didn't work for me.~
~Already tried react-native link after running yarn add, also didn't work.~
Edit: Finally got it working
Must unlink i18n first before run yarn add
react-native unlink react-native-i18n
yarn add [email protected]
react-native link
react-native run-ios
~
yarn add [email protected]didn't work for me.~
~Already triedreact-native linkafter runningyarn add, also didn't work.~Edit: Finally got it working
Must unlink i18n first before run yarn add
react-native unlink react-native-i18n yarn add [email protected] react-native link react-native run-ios
It worked for me
Most helpful comment
Run
yarn add [email protected]Rerun
react-native run-ios