GameDevEducation / UnityTutorial_BuildingViaCode

MIT License
4 stars 3 forks source link

Support for post-build scripts #5

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi,

Thanks for sharing this! Would you have any ideas on how to extend this to support post build scripts for MacOS? The AcceptExternalModificationsToPlayer option doesn't seem to be allowed for the MacOS target , and without it Unity seems to switch platform too early, skipping the postbuild scripts completely.

I've tried switching back to SwitchActiveBuildTarget (not async) and the same thing happens.

Thanks!

ghost commented 1 year ago

Looks like for 2021.3 support for modifying the xcode project for MacOS builds has been added. 👍