본문 바로가기

iOS

iOS pod install 실행 undefined method `map' for nil:NilClass 에러 해결

반응형

문제 발생

iOS에 Admob을 적용하려고 CocoaPods pod install 을 실행했는데

pod install --repo-update

[!] Oh no, an error occurred.

Searching for inspections failed: undefined method `map' for nil:NilClass

이런 에러 발생! 

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.5%2Flib%2Fffi_c.bundle%2C+0x0009%29%3A+tried%3A+%27%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.5%2Flib%2Fffi_c.bundle%27+%28mach-o+file%2C+but+is+an+incompatible+architecture+%28have+%27x86_64%27%2C+need+%27arm64e%27%29%29%2C+%27%2Fusr%2Flib%2Fffi_c.bundle%27+%28no+such+file%29+-+%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.5%2Flib%2Fffi_c.bundle&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

Searching for inspections failed: undefined method `map' for nil:NilClass
반응형

문제 해결

arch -x86_64 pod install --repo-update

아 맞다! M1칩 이지 ... 

arch -x86_64 붙여서 pod install 실행하면 잘 된다. 

오! 노! 에러가 발생했어요

반응형