namespace AtlasUtility { using LitJson; using System.IO; using System.Linq; using System.Collections.Generic; using UnityEditor; using UnityEngine; using UnityEngine.UI; using ChillyRoom.UnityEditor.iOS.Xcode; [CustomEditor(typeof(Test))] public class TestEditor : Editor { #region Variable public Test Script; #endregion public void OnEnable() { Script = (Test) target; } public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Test")) { string plistPath = "C:/Users/Administrator/Desktop/IOS/Info.plist"; PlistDocument plist = new PlistDocument(); plist.ReadFromFile(plistPath); string projectPath = PBXProject.GetPBXProjectPath("C:/Users/Administrator/Desktop/IOS/"); PBXProject project = new PBXProject(); project.ReadFromFile(projectPath); } } } }