com.puzzlescapegames.services 1.3.6 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*#if (UNITY_IPHONE || UNITY_IOS)
|
|
2
|
+
using UnityEditor;
|
|
3
|
+
using UnityEditor.Callbacks;
|
|
4
|
+
using UnityEditor.iOS.Xcode;
|
|
5
|
+
|
|
6
|
+
namespace PuzzlescapeGames.Services.Editor
|
|
7
|
+
{
|
|
8
|
+
public static class AlwaysEmbedSwiftStandardLibrariesDisablerPostProcess
|
|
9
|
+
{
|
|
10
|
+
[ PostProcessBuild( 999 ) ]
|
|
11
|
+
public static void OnPostProcessBuild( BuildTarget buildTarget, string pathToBuildProject )
|
|
12
|
+
{
|
|
13
|
+
if ( buildTarget == BuildTarget.iOS )
|
|
14
|
+
{
|
|
15
|
+
string projectPath = pathToBuildProject + "/Unity-iPhone.xcodeproj/project.pbxproj";
|
|
16
|
+
PBXProject pbxProject = new PBXProject();
|
|
17
|
+
pbxProject.ReadFromFile( projectPath );
|
|
18
|
+
|
|
19
|
+
//Disabling ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES Unity Framework target
|
|
20
|
+
string target = pbxProject.GetUnityFrameworkTargetGuid();
|
|
21
|
+
pbxProject.SetBuildProperty( target, "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES", "NO" );
|
|
22
|
+
|
|
23
|
+
pbxProject.WriteToFile( projectPath );
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
#endif*/
|