I used these commands to solve the problem.
pod deintegratesudo gem install cocoapods-cleanpod clean# Open the project and delete the “Pods” folder that should be redpod setuppod install