While upgrading react native version from 0.80.2 to 0.81.4, npm run ios --verbose , throws this error:
error Searching for inspections failed: undefined method `map' for nil:NilClass
report.issues = results['items'].map { |item| Issue.new(item) }
^^^^
✖ Installing CocoaPods dependencies with New Architecture (this may take a few minutes)
error Something went wrong while installing CocoaPods. Please run pod install manually.
info Run CLI with --verbose flag for more details.
npm verbose cwd /Users/ws-mac-mini-02/Documents/amrinder/projects/skyzone-v81/skyzone
npm verbose os Darwin 24.3.0
npm verbose node v22.12.0
npm verbose npm v10.9.0
npm verbose exit 1
npm verbose code 1
I have:
- pod 1.15.2,
- ruby 3.1.0p0,
- node v22.12.0
- system config - mac m4, macOS Sequoia 15.7.1
I've tried upgrading pod to 1.16.2 and ruby to 3.2.3 and 3.4.5 as well but it didn't work either. After researching, I found another similar issue but it is for Flutter and the solutions suggest removing ffi versions, while I'm not using them anywhere in my react native projects. Error Regarding undefined method `map' for nil:NilClass for Flutter App / CocoaPod Error
Also, my pod installation is successful, but the build fails here.