-
Notifications
You must be signed in to change notification settings - Fork 24
Troubleshooting
npm cache clean --force
pod cache clean --all
yarn cache clean
rm -rf node_modules
rm -rf package-lock.json
After the cache is cleared, re-setup the LCW app on your command line and try again.
- If you experience failures running the iOS simulator go into
XCode
and selectProduct
in the menu bar at the top. Then selectbuild
. Once XCode indicates a build failure, click the red circle with anx
in it to be shown the error.
On latest main
(post-React Native/Expo upgrade), when running npm run prebuild:ios
, generates error:
✔ Finished prebuild
⚠️ Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: Invalid `Podfile` file:
[!] Invalid `RNKeychain.podspec` file: undefined method `visionos' for #<Pod::Specification name="RNKeychain">.
This is due to an older install of the cocoapods
library. To fix:
Determine which cocoapods
lib you have installed, and by what method. Run:
gem which cocoapods
and brew ls cocoapods
- If you have both a
gem
-installed cocoapods AND abrew
-installed, this is bad, you must delete one of those. - If your
cocoapods
has been installed viagem
, upgrade it:gem install cocoapods -v 1.14.3
- If your
cocoapods
has been installed viewbrew
, upgrade it:brew switch cocoapods@1.14.3
An error about the RTC_Folly
Pod. To fix this, you'll need to fix the syntax of a function call (as of writing) on line 131
from std::unary_function
to std::__unary_function
in a file named hash
. You'll be able to access this and fix it via the XCode GUI and the steps directly above.
This project was started with Expo, but had to be ejected because some libraries did not support it. Do not develop using Expo, even if it might still launch. That being said, we are still using unimodules, so feel free to install and use packages from the Expo community.
If you get cryptic errors like the following:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/jc/Library/Developer/Xcode/DerivedData/eduwallet-cikpfctcsrnvkqflqlievgbjvnfr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RealmJS.build/Objects-normal/x86_64/RealmReact.o /Users/jc/gitlab\ github/digitalcredentials/learner-credential-wallet/node_modules/realm/react-native/ios/RealmReact/RealmReact.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RealmJS' from project 'Pods')
(1 failure)
Then check your version of cocoa pods. If it is 1.9.3, try upgrading it to something newer, like 1.11.2_1