Yeah generally, you need to run gradle clean -> sync your project to regenerate the xcproject. and if using pods, run pod install first.
It 100% could be better, but I'll give Jetbrains credit here, Apple dev ecosystem is about 5-10 years behind where Java/Gradle/Android is... so can only guess how many workarounds, hoops they have to jump through esp with Apple's walled garden