I ran into the same issue and managed to fix it by doing the following:
Click on the Project Name Go into the Build Settings
Find Build Options: Look for the Build Options section—it’s usually where you tweak things related to how your project gets built.
Change the Setting: There should be an option you can toggle, like switching it from Yes to No
Rebuild the Project: Save your changes and rebuild the project to see if it works.