Skip to content

Instantly share code, notes, and snippets.

@80ROkWOC4j
Created August 21, 2025 03:13
Show Gist options
  • Select an option

  • Save 80ROkWOC4j/31bdc5533d6fbf6c2f3f8269a02d4838 to your computer and use it in GitHub Desktop.

Select an option

Save 80ROkWOC4j/31bdc5533d6fbf6c2f3f8269a02d4838 to your computer and use it in GitHub Desktop.
Flutter Tips

증상 키워드

MS8066

Target debug_bundle_windows_assets failed: PathExistsException: Cannot copy file to ( OS Error: The file cannot be created when the file already exists.err no = 183)

flutter 빌드 OS Error: 파일이 이미 있으므로 만들 수 없습니다.

원인

빌드 중 에셋 카피하지 못해 위와 같은 에러 발생. 플러터 빌드할 때 해당 파일의 속성까지 그대로 복사하는데, 에셋 파일이 readonly면 복사한 것도 read only가 되어 최초 빌드 외에는 실패함. perforce 사용할 경우 해당 파일 타입을 +w Always writable in workspace 설정하는 것이 가장 깔끔한 해결인 것 같음.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment