iosビルド修正

This commit is contained in:
atusi 2021-12-20 18:21:42 +09:00
parent 14d84d5705
commit 791791e8a3
3 changed files with 17 additions and 5 deletions

View File

@ -28,7 +28,8 @@ public static class PostProcessor{
PBXProject pj = new PBXProject ();
pj.ReadFromString(File.ReadAllText(projectPath));
var target = pj.GetUnityMainTargetGuid();
var target = pj.GetUnityFrameworkTargetGuid();
pj.SetBuildProperty (target, "ENABLE_BITCODE", "NO");
// Enable Modules (C and Objective-C)をYESに設定する
pj.SetBuildProperty(target, "CLANG_ENABLE_MODULES", "YES");
@ -90,6 +91,8 @@ public static class PostProcessor{
pj.AddFrameworkToProject(target, "AdSupport.framework", false);
pj.AddFrameworkToProject(target, "iAd.framework", false);
var target2 = pj.GetUnityMainTargetGuid();
foreach (KeyValuePair<string, Dictionary<string, string>> entry in appTextMap) {
string appNameConverted = "";
@ -122,7 +125,7 @@ public static class PostProcessor{
w.Close();
string fileGuid = pj.AddFile( Path.Combine(path, lprojDir), "/"+lprojDir, PBXSourceTree.Source );
pj.AddFileToBuild( target, fileGuid );
pj.AddFileToBuild( target2, fileGuid );
pj.WriteToFile( projectPath );
}

View File

@ -9,8 +9,8 @@ public class DevelopmentBuilder : IPreprocessBuildWithReport {
}
public void OnPreprocessBuild(BuildReport report) {
UnityEditor.EditorUserBuildSettings.development = true;
UnityEditor.EditorUserBuildSettings.iOSBuildConfigType = UnityEditor.iOSBuildType.Debug;
UnityEditor.AssetDatabase.SaveAssets();
// UnityEditor.EditorUserBuildSettings.development = true;
// UnityEditor.EditorUserBuildSettings.iOSBuildConfigType = UnityEditor.iOSBuildType.Debug;
// UnityEditor.AssetDatabase.SaveAssets();
}
}

View File

@ -1,6 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<projectSettings>
<projectSetting />
<projectSetting name="com.google.external-dependency-managerAnalyticsEnabled" value="False" />
<projectSetting name="Google.IOSResolver.AutoPodToolInstallInEditor" value="True" />
<projectSetting name="Google.IOSResolver.CocoapodsIntegrationMethod" value="1" />
<projectSetting name="Google.IOSResolver.PodfileAddUseFrameworks" value="True" />
<projectSetting name="Google.IOSResolver.PodfileAllowPodsInMultipleTargets" value="True" />
<projectSetting name="Google.IOSResolver.PodfileAlwaysAddMainTarget" value="True" />
<projectSetting name="Google.IOSResolver.PodfileEnabled" value="True" />
<projectSetting name="Google.IOSResolver.PodfileStaticLinkFrameworks" value="False" />
<projectSetting name="Google.IOSResolver.PodToolExecutionViaShellEnabled" value="True" />
<projectSetting name="Google.IOSResolver.VerboseLoggingEnabled" value="False" />
<projectSetting name="Google.PackageManagerResolver.VerboseLoggingEnabled" value="False" />
<projectSetting name="Google.VersionHandler.VerboseLoggingEnabled" value="False" />