3

I am using Unity 2017.1.Op4 and I keep getting the following error when building the project for iOS:

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()

The build folder is also empty. After making a Google search, a few recommended that I change the Product Name in the Player Settings.

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).

Both suggestions didn't work. How can I resolve this issue?

3
  • I want to download a different Unity 2017.x version. I would appreciate if someone could confirm and mention a version that doesn't have this issue. Aug 25, 2017 at 21:47
  • From a search, Unity 2017.1.0b10 was recommended, but I am still getting the same issue with it. Has anyone been able to solve this. Please help, I'm been on this for days. Aug 28, 2017 at 23:16
  • Have you been able to resolve this? I am also having the same problem.
    – iGetIt
    Aug 29, 2017 at 10:28

1 Answer 1

1

I just had this problem and solved. I hope this helps the next person with this problem.

My code contained wrong code like here:

 #if UNITY_STANDALONE_WIN || UNITY_EDITOR
        Correct Code Hear
 #elif UNITY_ANDROID || UNITY_IPHONE
        Compiled Error Code Hear
 #else
 #endif

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.