Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public static class Config
#elif EOS_PLATFORM_WINDOWS_64
"EOSSDK-Win64-Shipping.dll"

#elif EOS_PLATFORM_OSX && EOS_UNITY
"libEOSSDK-Mac-Shipping"
#elif UNITY_EDITOR_OSX
"libEOSSDK-Mac-Shipping.dylib"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the string is the same in the editor and in builds, we don't need separate checks any more. Just one #elif EOS_PLATFORM_OSX should suffice

#elif EOS_PLATFORM_OSX
"libEOSSDK-Mac-Shipping.dylib"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#if UNITY_EDITOR&&UNITY_IOS
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;


public static class iOSPostProcessBuild
{
[PostProcessBuild(1000)]
public static void OnPostProcessBuild(BuildTarget target, string path)
{
if (target == BuildTarget.iOS)
{
string projectPath = PBXProject.GetPBXProjectPath(path);

PBXProject pbxProject = new PBXProject();
pbxProject.ReadFromFile(projectPath);
string[] targetGuids = new string[2] { pbxProject.GetUnityMainTargetGuid(), pbxProject.GetUnityFrameworkTargetGuid()};
foreach(string t in targetGuids)
{
pbxProject.SetBuildProperty(t, "ENABLE_BITCODE", "NO");
}

pbxProject.WriteToFile(projectPath);
}
}
}
#endif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading