Skip to content

Commit cbd2b90

Browse files
committed
fix Unity syncing with XCode
1 parent 254c4ff commit cbd2b90

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Editor/LLMBuildProcessor.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,19 @@ public static void PostprocessIOSBuild(BuildTarget buildTarget, string outputPat
6868
}
6969

7070
project.WriteToFile(projPath);
71+
AssetDatabase.ImportAsset(projPath);
7172
}
7273

7374
#endif
7475

7576
// called after the build
7677
public void OnPostprocessBuild(BuildReport report)
7778
{
78-
EditorApplication.delayCall += () =>
79-
{
8079
#if UNITY_IOS || UNITY_VISIONOS
81-
PostprocessIOSBuild(report.summary.platform, report.summary.outputPath);
80+
PostprocessIOSBuild(report.summary.platform, report.summary.outputPath);
8281
#endif
82+
EditorApplication.delayCall += () =>
83+
{
8384
BuildCompleted();
8485
};
8586
}
@@ -94,4 +95,4 @@ public void BuildCompleted()
9495
};
9596
}
9697
}
97-
}
98+
}

0 commit comments

Comments
 (0)