Commit 7606c86a authored by fengchao's avatar fengchao
Browse files

fix(code):修改iOS脚本文件

parent b14817ef
......@@ -156,16 +156,13 @@ public static class IOSPostBuildProcessor
}
}
/// <summary>
/// 修复 PBX 工程文件中对 UnityAppController 的错误引用
/// </summary>
private static void FixFileReference(PBXProject proj, string targetGuid, string pathToBuiltProject)
{
string newPathH = "Classes/UnityAppController.h";
string newPathMM = "Classes/UnityAppController.mm";
// 删除旧的 .h 文件引用
var oldPathH = "Libraries/Plugins/Ios/UnityAppController.h";
var oldPathH = "Libraries/Plugins/iOS/UnityAppController.h";
var oldGUID_H = proj.FindFileGuidByProjectPath(oldPathH);
if (!string.IsNullOrEmpty(oldGUID_H)){
proj.RemoveFileFromBuild(targetGuid, oldGUID_H);
......@@ -174,7 +171,7 @@ public static class IOSPostBuildProcessor
}
// 删除旧的 .mm 文件引用
var oldPathMM = "Libraries/Plugins/Ios/UnityAppController.mm";
var oldPathMM = "Libraries/Plugins/iOS/UnityAppController.mm";
var oldGUID_MM = proj.FindFileGuidByProjectPath(oldPathMM);
if (!string.IsNullOrEmpty(oldGUID_MM)){
proj.RemoveFileFromBuild(targetGuid, oldGUID_MM);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment