iOS - Prevent unnecessary recompilation

Hi guys, I’m using Swift Scripting and I have setup a build step to generate API.swift. It all works well but it usually takes 5 seconds to run the script even when there are no changes. I’m wondering if this step here https://www.apollographql.com/docs/ios/installation/#prevent-unnecessary-recompilation applies when using Swift Scripting or only for the other mechanisms.

If it does apply, were you guys able to not have the script run when no changes are made to any graphql file?

Thank you!