CocoaPods을 사용하는 환경에서 Xcode 빌드 시 link_stat failed no such file or directory (2) 라는 에러가 발생했을 때의 해결방법 공유합니다.
(참고로 저는 Xcode 14.3을 사용하고 있고 Alamofire.framework에서 이슈가 발생했어요.)
xcworkspace > Pods > Targets Support Files > Pods-xxx > Pods-xxx-frameworks.sh 파일에서 아래 코드를
이렇게 바꿔주세요. (readlink 명령어 뒤에 -f 옵션을 넣어주세요.)
그럼 에러가 바로 해결됩니다ㅎㅎ
다른 해결방법으로는 Xcode를 14.3 -> 14.2로 다운그레이드시키는 방법도 있다고 해요.
(저는 안해봐서 진짜 해결되는지는 잘 모르겠어요...)
# 참고
- https://github.com/CocoaPods/CocoaPods/issues/11808
Upgrade from Xcode 14.2 to 14.3 rsync: link_stat failed: No such file or directory (2) for pods that were working earlier. ·
I've read and understood the CONTRIBUTING guidelines and have done my best effort to follow. Report What did you do? Archive an iOS app on Xcode Version 14.3 beta 2 (14E5207e) What did you expect t...
github.com
이번 글은 여기서 마무리.
'TroubleShooting' 카테고리의 다른 글
[SwiftUI] Unknown preview provider 해결방법 (0) | 2023.05.17 |
---|---|
[SwiftUI] 커스텀 폰트 사용할 때 터치 시 공백 자간이 줄어드는 현상 (0) | 2023.05.14 |
[SwiftUI] iOS 15 이하에서 navigationBarHidden이 동작하지 않는 이슈 (0) | 2023.04.11 |
[CocoaPods] [!] An unexpected error occurred: <!DOCTYPE html> (0) | 2023.03.23 |
[iOS] Error Domain=NSURLErrorDomain Code=-1200 해결방법 (0) | 2023.02.15 |