증상
generate_hash 파일을 실행할 때 아래와 같은 오류가 발생
....
4. Codesigning your app using certificate used to sign your IPA ...
Executable=..../
Apple Distribution: ***,**** (*******): ambiguous (matches "Apple Distribution: ***** (*****)"
and "Apple Distribution: **** ***(*****)" in /Users/prudhviraj/Library/Keychains/login.keychain-db)
5. Generating app integrity/certificate snapshot ...
.
.
Invalid IPA file has passed to an argument, check your IPA file and try again.
원인
generate_hash가 실행중인 맥북의 키체인 앱에, 동일한 이름의 배포용 인증서가 여러개 등록되어있는 경우에, generate_hash가 어떤 인증서를 사용해야하는지 판단할 수 없어 에러가 발생합니다.
해결방법
키체인 접근 앱을 실행하여 중복되는 이름의 인증서가 여러개인지 확인한 뒤, 사용하지 않는 인증서를 삭제한 다음 다시 시도해 주시기 바랍니다.