Remote Build Windows - Mac

I’ve tried to configure Windows Remote build.
I followed this tutorial:

I’ve also added codesing to privatekey what was suggested in this topic: Signing problem with remote build on OS X Sierra with 1.3.0-beta

But now can’t sync gradle with task for coping Assets in ios/build.gradle:

task copyAssets(type: Copy) {
from ‘…/android/assets’
into ‘build/assets’
task moeMainReleaseIphoneosXcodeBuild(dependsOn: copyAssets){}
task moeMainDebugIphoneosXcodeBuild(dependsOn: copyAssets){}

Android studio fails after Gradle sync. with error:

Error:(28, 0) org.gradle.api.DefaultTask_Decorated cannot be cast to
Possible causes for this unexpected error include:

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

When I try to build App on remote mac I got:


The following build commands failed:
PhaseScriptExecution Compile\ Sources\ (MOE) /var/folders/6y/zsq91k315zb6n1mwjt7xrt280000gn/T/tmp.vsWvFBty/build/moe/xcodebuild/obj/
(1 failure)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:ios:moeMainReleaseIphoneosXcodeBuild’.
    Remote command execution failed
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.