-
Notifications
You must be signed in to change notification settings - Fork 14
Troubleshooting
Mark Bouslog edited this page Sep 16, 2022
·
9 revisions
- Switch the project to the XCode Legacy Build System as described here under the section named "Opting out of the new Xcode build system."
$ npm install react-native-vector-icons --save
$ react-native link react-native-vector-icons
Or when encountering a red screen on the emulator referencing an issue with FontAwesome from the vector icons, try:
$ yarn add react-native-vector-icons
$ react-native start --reset-cache
- You may need to manually link up the
react-native-svg
dependency. Open XCode, and in XCode openmobile/ios/ZooniverseMobile.xcworkspace
. Follow these instructions to manually linkRNSVG.xcodeproj
, found atmobile/node_modules/react-native-svg/ios/RNSVG.xcodeproj
. For our app, you do need to do step 3 in that tutorial, adding$(SRCROOT)/../node_modules/react-native-svg/ios/RNSVG
to our Header Search Paths for both debug and release at Build Settings > Header Search Paths.
If the app builds fine in dev and from testflight but keeps getting rejected in the app store for crashing on launch:
https://chelseatroy.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-01-at-8.22.24-PM.png
During iOS deploy process, while archiving in XCode, error including env: node: No such file or directory
:
- see https://github.com/getsentry/sentry-react-native/issues/141 for additional information
- likely related to using
nvm
to managenode
versions - creating symlink
ln -s $(which node) /usr/local/bin/node
fixed issue (at least in once instance of issue, though may not work in all instances, depends on local node and XCode setup)