[change] 禁用hybridclr后打包ios时不再修改导出的xcode工程

main
walon 2023-07-02 21:50:52 +08:00
parent 6757f6df5b
commit 210c781fad
2 changed files with 2 additions and 3 deletions

View File

@ -29,9 +29,8 @@ namespace HybridCLR.Editor
[PostProcessBuild]
public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProject)
{
if (target != BuildTarget.iOS)
if (target != BuildTarget.iOS || !HybridCLRSettings.Instance.enable)
return;
/*
* 1. lump
3. libil2cpp Library/. . search paths libil2cpp/includelibil2cpp

View File

@ -21,7 +21,7 @@ namespace HybridCLR.Editor
[PostProcessBuild]
public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProject)
{
if (target != BuildTarget.iOS)
if (target != BuildTarget.iOS || !HybridCLRSettings.Instance.enable)
return;
string pbxprojFile = $"{pathToBuiltProject}/Unity-iPhone.xcodeproj/project.pbxproj";