title: UnityEditor.BuildPlayerWindow+BuildMethodException: when building Unity project for iOS
body: <p>I am using Unity 2017.1.Op4 and I keep getting the following error when building the project for iOS:</p>
  
  <pre><code>UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:162 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:83 
  UnityEditor.HostView:OnGUI()
  </code></pre>
  
  <p>The build folder is also empty.
  After making a Google search, a few recommended that I change the Product Name in the Player Settings.</p>
  
  <p>Another workaround suggested: Clearing all errors and switching inspector to show Camera's components (it doesn't matter as long as it is not Player Settings window).</p>
  
  <p>Both suggestions didn't work. How can I resolve this issue?</p>