Browse Source

调试苹果音效

LiuQilin 8 years ago
parent
commit
5b852714c9
1 changed files with 3 additions and 6 deletions
  1. 3 6
      Assets/Script/Editor/PostProcessor.cs

+ 3 - 6
Assets/Script/Editor/PostProcessor.cs

@@ -57,7 +57,7 @@ public class NewBehaviourScript
         plist.ReadFromFile(plistPath);
 
         //plist.root.SetString("Bundle display name", "${CFBundleDisplayName }");
-        plist.root.CreateDict("Bundle display name").SetString("Bundle display name", "${CFBundleDisplayName }");
+        plist.root["Bundle display name"] = new PlistElementString("Bundle display name");
 
         //var infoDirs = Directory.GetDirectories(Application.dataPath + "/AppleDependency/");
         //for (var i = 0; i < infoDirs.Length; ++i)
@@ -129,12 +129,9 @@ public class NewBehaviourScript
         //添加URLScheme
         //PlistElementArray urlArray = plist.root.CreateArray("CFBundleURLTypes");
         //PlistElementDict urlDict = urlArray.AddDict();
-        PlistElementArray urlArray = plist.root["CFBundleURLTypes"].AsArray();
-        PlistElementDict urlDict = urlArray.AddDict();
 
-        //urlDict.SetString("CFBundleURLName", "TestName");
-        urlDict.SetString("URL Schemes", "MyLovelyGarden");
-        urlDict.SetString("CFBundleURLSchemes", "MyLovelyGarden");
+        //urlDict.SetString("URL Schemes", "MyLovelyGarden");
+        //urlDict.SetString("CFBundleURLSchemes", "MyLovelyGarden");
         
         //PlistElementArray urlInnerArray = urlDict.CreateArray("TestScheme");
         //urlInnerArray.AddString("TestValue");