Problem:
It seems I can not understand the correct signature for the message export method in Unity cloud build post. According to the documentation:
The full name of the public static method that you want to call after the Unity build process is complete (but before Xcode). For example: ClassName.CoolMethod or NameSpace.ClassName.CoolMethod. there is no end bracket, and it cannot have the same name as your pre-export method! This method should take a string parameter that will get the path to the exported Unity player (or Xcode project in case of iOS).
Here is my code:
public static void OnPostprocessDevBuildIOS(string ExportPath)
{
var projPath = ExportPath + "/Unity-iPhone.xcodeproj/project.pbxproj";
var proj = new PBXProject();
var nativeTarget =
proj.TargetGuidByName(PBXProject.GetUnityTargetName());
var testTarget =
proj.TargetGuidByName(PBXProject.GetUnityTestTargetName());
string[] buildTargets = {nativeTarget, testTarget};
proj.ReadFromString(File.ReadAllText(projPath));
proj.SetBuildProperty(buildTargets, "ENABLE_BITCODE", "NO");
File.WriteAllText(projPath, proj.WriteToString());
}
and here is the error:

I have tried several test method signatures and cannot make anything work. I even tried only a method that outputs the path.
Additional Information:
- Unity Version: 5.3.1f
- Unity Cloud Build: 5.3.1f
- : iOS 8.0 +
, script .

, -, -, , . , . , .
[PostProcessBuild]
public static void OnPostprocessBuild(BuildTarget buildTarget, string path)
{
if (buildTarget == BuildTarget.iOS)
{
string projPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj";
PBXProject proj = new PBXProject();
proj.ReadFromString(File.ReadAllText(projPath));
string nativeTarget = proj.TargetGuidByName(PBXProject.GetUnityTargetName());
string testTarget = proj.TargetGuidByName(PBXProject.GetUnityTestTargetName());
string[] buildTargets = new string[]{nativeTarget, testTarget};
proj.SetBuildProperty(buildTargets, "ENABLE_BITCODE", "NO");
File.WriteAllText(projPath, proj.WriteToString());
}
}