Skip to content

Instantly share code, notes, and snippets.

@JonathanReid
Last active March 11, 2018 11:41
Show Gist options
  • Save JonathanReid/2783a958b5066a0fd5b14e9f64520939 to your computer and use it in GitHub Desktop.
Save JonathanReid/2783a958b5066a0fd5b14e9f64520939 to your computer and use it in GitHub Desktop.
Function to execute fastlane inside unity
//requires https://github.com/wlgys8/UnityShellHelper
[MenuItem("Build/run xcode")]
static void XCodeBuild()
{
ShellHelper.ShellRequest req = ShellHelper.ProcessCommand("PATH=$PATH:/usr/local/bin\nfastlane ios beta", "Build");
req.onLog += delegate (int arg1, string arg2)
{
UnityEngine.Debug.Log(arg2);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment