Explorar o código

ios sdk init g

gdl_123 hai 3 meses
pai
achega
5a9d6bb713

+ 2 - 2
Assets/Editor/Pack/Platform/PackPlatformiOSBuild.cs

@@ -230,7 +230,7 @@ namespace Pack
             pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");//enable Bitcode 设置 为 no
 
             pbxProject.AddBuildProperty(targetGuid, "OTHER_LDFLAGS", "-all_load -ObjC -lc++");
-            pbxProject.AddBuildProperty(unityFmwkGUid, "OTHER_LDFLAGS", " -all_load -ObjC -lc++");
+            pbxProject.AddBuildProperty(unityFmwkGUid, "OTHER_LDFLAGS", "-ObjC");
             // 设置 Allow Non-modular Includes in Framework Modules 为 true
             pbxProject.SetBuildProperty(targetGuid, "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES", "YES");
             pbxProject.SetBuildProperty(unityFmwkGUid, "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES", "YES");
@@ -297,7 +297,7 @@ namespace Pack
 
             PlistElementArray arr = PlistAddUrlType(plistDocument, null, "facebook", "Editor", "fb849135470863608");
             PlistAddUrlType(plistDocument, arr, "com.boliking.ios", "Editor", "com.boliking.ios");
-            PlistAddUrlType(plistDocument, arr, "com.boliking.ios", "Editor", "827002282646-eefr6v53fvhmfts5d5huo9ptir8ola1k.apps.googleusercontent.com");
+            PlistAddUrlType(plistDocument, arr, "com.boliking.ios", "Editor", "com.googleusercontent.apps.827002282646-1a04tk0e5i45tsnhsmqn8dkp1ghkb84v");
 
 
             plistDocument.WriteToFile(plistPath);

+ 4 - 4
Assets/Src/GameLogic/GameMgr.cs

@@ -176,7 +176,7 @@ public class GameMgr : SingletonMono<GameMgr>
         base.OnApplicationQuit();
     }
 
-    private void InitSDK_E()
+    public void InitSDK_E()
     {
         StartCoroutine(initSdk_E());
     }
@@ -196,9 +196,9 @@ public class GameMgr : SingletonMono<GameMgr>
 
         RegisterEvents();
 
-#if UNITY_IOS && !UNITY_EDITOR
-        InitSDK_E();
-#endif
+//#if UNITY_IOS && !UNITY_EDITOR
+//        InitSDK_E();
+//#endif
         //InitSDK_E();
         StartDetector();
         DeviceInfo.GetDeviceState();

+ 3 - 0
Assets/Src/GameLogic/LaunchLoadMgr.cs

@@ -116,6 +116,9 @@ public class LaunchLoadMgr
 
     private IEnumerator CheckResUpdate()
     {
+#if UNITY_IOS && !UNITY_EDITOR
+        GameMgr.Instance.InitSDK_E();
+#endif
         DownloadMgr.Instance.InitUrlCfg();
         DownloadMgr.Instance.CheckVersion();
         SetLoadDes("CheckRes");