Errors when trying to run app locally on Mac

Hi! I followed the tutorial: https://www.youtube.com/watch?v=CTf5Egd7-xI to set up my FlutterFlow app locally on my Mac, but when I enter "flutter run" in my command line, I keep getting the error message: "Error (Xcode): DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS,

use TOOLCHAIN_DIR instead

Could not build the application for the simulator.

Error launching application on iPhone 15."

Does anyone know how to fix this error and run my app locally? Do I need to go into a file and change some text? Please help me.

2
1 reply