This worked for me.
Step 1
Go to the XCode project folder in Terminal.
Step 2
Execute the following command
pod deintegrate
Step 3
Execute the following command
pod install
Step 4
Go back to XCode.
Go to Product > Clean Build Folder.
Step 5
Run the app again.
Apple commands error Mac OS solution xcode