UnityEditor.BuildPlayerWindow+BuildMethodException: when building Unity project for iOS

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

From a search, Unity 2017.1.0b10 was recommended, but I am still getting the same issue with it.

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

Can some please help me. I’ve been at this for days

same question !

me to !

Me Too

I have the same for the HoloLens

1 Like

me too

Unity cannot build into the project asset folder, try to change another folder such as Desktop.
look at this link below:

1 Like

Can someone from the unity team tell us what is going on with the error debug logs

I am having the same problem with HoloLens. Please help.

1 Like

Having the same problem also… I had this issue (or similar) when building apk’s for Android several months ago. I eventually found a fix for this, which required downgrading the google SDK build folder in Windows explorer to an older version then it allowed me to build apk’s again. Now I am getting this error in PC, MAC & Linux Standalone builds and it seems a common issue! Any idea what causes this? Very frustrating as it was building fine only yesterday but today it won’t build.

Me Too,I am doing the UWP APP coding and meet the same problem,but I know that using .NET in place of IL2CPP can let it be published normally, however, this method will be abandoned In the future.

me 2

me too :frowning:

me 2

Had the same error in standalone build.

Suddenly I can’t build my game anymore cause all editor folders get included for some reason (which it should ignore cause they are in separate editor folders)

I get all errors about “unityeditor namespace can’t be found” so I believe it’s an error thrown because I created a custom assembly definition for probuilder, navmeshcomponents and textmeshpro, cause they wouldn’t work otherwise.

But I have no clue how to fix this.

EDIT: Solution was to add empty assembly definitions with only editor unchecked to all folders that give an error

Me too please help

try deleting library in the project files