[iOS][Error] failed to read asset tags

·2024년 3월 15일

문제 상황

Xcode에서 작업하다가 다음과 같은 에러가 나면서 빌드가 안되고 특정 파일을 클릭하면 예기치 않게 종료되는 문제가 있었다.

failed to read asset tags: The command `(cd /Users/name/Desktop/name && /Applications/Xcode.app/Contents/Developer/usr/bin/actool --print-asset-tag-combinations --output-format xml1 /Users/name/Desktop/name/name/Resources/Assets.xcassets)` exited with status 255. The command's standard error was:

2024-03-16 00:32:59.113 ibtoold[8052:160291] [MT] DVTAssertions: ASSERTION FAILURE in DVTFrameworks/DVTFoundation/FilePaths/DVTFilePath.m:570
Details:  allocation too small? AllocationSize: 25 String: '오토바이.png'
Object:   <DVTFilePath>
Method:   +_filePathForParent:pathString:
Thread:   <_NSMainThread: 0x600000030500>{number = 1, name = main}
// 생략




문제 발생 이유

git merge할 때 특정 문자로 되어있는 asset 파일은 encoding 문제가 생겨서 merge 이후 파일을 인식 할 수 없을 수도 있다고 한다.
나는 이미지 에셋의 이름이 한국어로 되어 있었는데, 한국어로 설정하면, 브랜치 나눠서 작업할 때 문제가 생기는 것 같다.




해결 방법

내가 선택한 해결 방법은 한국어로 된 asset 들은 지워주고 다시 등록하는 것이였다ㅜ.ㅜ
다음부터는 이미지 에셋 이름을 무조건 영어로 설정해야겠다.

1개의 댓글

comment-user-thumbnail
2024년 5월 7일

비슷한 에러가 나왔는데 해결할 실마리를 얻을 수 있었습니다.. 감사합니다!

답글 달기