If you’ve encountered the frustrating error message “unable to initiate PIF transfer session (operation in progress?)” while trying to build your Flutter app for iOS, you’re not alone.
The error occurs due to corrupted build caches, stalled Xcode processes, or conflicts between Flutter and CocoaPods.
To fix the error, you should close any running Xcode processes, delete the DerivedData directory, and reset the simulators.
Following these steps in sequence will help resolve the issue and allow you to continue your development workflow.