After eas update , IOS phone app crash

My code :
useEffect(() => {
async function launcher() {
try {
await SplashScreen.preventAutoHideAsync();
//Init my sqlite
if(!DEV){
await Updates.checkForUpdateAsync().then(async (update) => {
if (update.isAvailable) {
await Updates.fetchUpdateAsync();
await Updates.reloadAsync();
}
})
}
} catch (error) {
alert(error.message)
console.log(error.message);
}finally {
setAppIsReady(true);
}
}
launcher();
}, );

Why it crashes and why only on ios phone ?

  • Project managed workflow
  • eas-cli/3.8.1 win32-x64 node-v18.14.2
  • I tried to change the useEffect which contains the updates, but no change is visible