Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity 6 'Default' is not a valid subtarget for the Standalone build target #153

Open
brentopc opened this issue Jan 18, 2025 · 3 comments
Open
Labels
Milestone

Comments

@brentopc
Copy link

Running a pretty basic windows build returns the error 'Default' is not a valid subtarget for the Standalone build target. I am unable to get around this error.

I believe it is due to (int)StandaloneBuildSubtarget no longer contains Default it is now only Player and Server.

@clarin-ebtio800090
Copy link

Hello, we tried to solve the issue.

This is what we did:

Modified the BuildWindows.cs file to address the 'Default' subtarget issue for Standalone builds. Removed the Server target and updated the Player target to use StandaloneBuildSubtarget.Player explicitly.

You can review changes in this commit: clarin-ebtio800090@1cf4e8f.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

@ArielJurkowski
Copy link

I confirm I have the same issue on the latest dev codebase with Unity 6. Out of curiosity, it did build the project after I changed the obsolete methods in BuildProject.cs and brute-forced NamedBuildTarget.Standalone with StandaloneBuildSubtarget.Player in a few places, but I’ll wait for a proper fix.

@robinnorth robinnorth added this to the v8.0.0 milestone Jan 21, 2025
@robinnorth
Copy link
Collaborator

Thanks for the reports, @brentopc and @ArielJurkowski! I've been able to reproduce this using the v8.0.0-pre.1 release on Unity 6, so will target v8.0.0 for a fix when I have some time to look into it further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants