Skip to content

Commit 8700265

Browse files
MacAlianBlank
authored andcommitted
fix: 修复文件复制时覆盖已存在文件的问题
1 parent db1d099 commit 8700265

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Editor/PostProcessBuildHelper.File.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private static void CopyFile(PBXProject proj, string targetGuid, string xcodePat
4242
bool needCopy = IsNeedCopy(src);
4343
if (needCopy)
4444
{
45-
File.Copy(src, des);
45+
File.Copy(src, des, true);
4646
proj.AddFileToBuild(targetGuid, proj.AddFile(des, des.Replace(xcodePath + "/", ""), PBXSourceTree.Absolute));
4747
AutoAddSearchPath(proj, xcodePath, targetGuid, des);
4848
Debug.Log("copy file " + src + " -> " + des);

0 commit comments

Comments
 (0)