Error

Searching for inspections failed: undefined method `map' for nil:NilClass .......... Error running pod install Error launching application on iPhone SE (3rd generation).

Solution

sudo rm -rf ~/.cocoapods/repos After you run this command, you may encounter a new error: Error: To set up CocoaPods for ARM macOS, run: sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc In this case, you can just run the promped command.