IOS white screen on simulator after building
Description:
After building Rocket.Chat IOS the app launches in the simulator but only displays the white screen. Metro gives the error: 0308010C:digital envelope routines:unsupported and TypeError: Cannot read properties of undefined (reading 'transformFile') at Bundler.js
Environment Information:
- Rocket.Chat Server Version:
- Rocket.Chat App Version:
- Device Name: iPhone 12
- OS Version: iOS 15.2
- macOS Monterey
- XCODE version 13.2.1
Steps to reproduce:
- git clone [email protected]:RocketChat/Rocket.Chat.ReactNative.git cd Rocket.Chat.ReactNative yarn
- npx pod-install yarn ios
Expected behavior:
IOS app to launch in the simulator and allow to enter server and login information
Actual behavior:
IOS launches and displays white screen
Have you solved the issue?
Any update on this?
Got the same problem after updating npm and node.js.
in my case, its something going on in laucnPackager:
compinit: initialization aborted complete:13: command not found: compdef
IMHO: react native environment is so unstable for iOS. God help us all
I fixed it by updating access permissions to "site-functions" directory
as described here: https://stackoverflow.com/questions/13762280/zsh-compinit-insecure-directories