using UnityEditor.Build;
using UnityEditor.Build.Reporting;

public class DevelopmentBuilder : IPreprocessBuildWithReport {

    // 実行順
    public int callbackOrder {
        get{ return 0; }
    }

    public void OnPreprocessBuild(BuildReport report) {
        UnityEditor.EditorUserBuildSettings.development = true;
        UnityEditor.EditorUserBuildSettings.iOSBuildConfigType = UnityEditor.iOSBuildType.Debug;
        UnityEditor.AssetDatabase.SaveAssets();
    }
}