I am running react native project on Xcode. It builds successfully on debug with latest code. However when I run on Release mode or archive it for submitting to appstore, it builds old version.
Xcode : 12, RN : 0.63.2
I tried all the options possible given in similar posts. None of them worked!
1.reset npm/RN cache
watchman watch-del-all.
npm cache clean --force.
2.delete npm modules,
rm -rf node_modules
3.delete ios/build, main.jsbundle, ios/assets.
xcodebuild clean
4.Clean Xcode, ~/Library/Developer/Xcode/
5.Reinstall npm, pods
6.Run react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
7.npm start -- --reset-cache
and so on.
Still no success. Stuck in this issue for past 3 days.