iOS 개발일지

Xcode Archive 멈춤현상 해결

최근 Xcode를 사용하며 아카이빙이 멈추는 현상이 생겼습니다 ㅠㅠ

아카이빙이 멈추는 이유라도 알려줬으면 시간을 덜 낭비 했었을텐데...

한시가 급한 배포 상황이었기에 너무 많은 당황을 했었지만 시간에 맞춰 배포가 되어야하니 정신을 부여잡고서 구글링을 했었습니다.

이를 해결하기 위해 여러 방면으로 리서치를 해보았고, 많은 시간을 허비한 후 스택오버플로우에서 답을 찾을 수 있었습니다 😭

https://stackoverflow.com/questions/57881459/building-archiving-for-release-hangs-indefinitely-in-xcode-11

[Building/archiving for release hangs indefinitely in Xcode 11

I'm trying to release an iOS app - it builds fine on simulator or device in Xcode 11, and can be archived fine in Xcode 10, but when I try to archive it for release in the App Store the build hangs

stackoverflow.com](https://stackoverflow.com/questions/57881459/building-archiving-for-release-hangs-indefinitely-in-xcode-11)

역시 없는게 없는 스택오버플로우...

답변에 나와있는대로 해결하기 위해 Firebase Crashlytics를 Build Phases의 가장 마지막 부분으로 옮겨주었더니 해결이 되었습니다.

아마 Firebase의 스크립트가 CocoaPod을 읽는것 보다 상위에 존재해서 생긴 문제같아보였어요.

단순하지만 자주 벌어질 수 있는 실수같았고,

원인을 파악하고 수정하는데 2-3시간이나 허비했기에 이 아티클이 다른분들에게 도움이 된다면 좋겠습니다 :)