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

Fixed whitespace bug when building for android #38

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

AndersLindas
Copy link

Never versions of Unity does not support whitespace when building for Android.

After some googling I decided to fork your repo and try this theory for myself and it turns out to be right. After changing install paths to not use whitespace it is now working.

Let me know if you have a test version that we can try :)

@sttz
Copy link
Owner

sttz commented Sep 3, 2024

Thanks for the PR!

Which versions of Unity are you seeing this with?

Unity regularly has issues with paths containing space or non-ASCII characters but those are usually accepted as bugs and fixed quickly. I would suggest first reporting a bug with Unity, to see if they will fix the issue.

Spaces are natural part of paths on macOS and also on all other modern platforms. Failing to handle path with spaces or special characters properly is a bug that should be fixed upstream, instead of adding workarounds or avoiding these characters all over the place.

As a workaround, you can set the install path on the command line using --opt "installPathMac=…".

@AndersLindas
Copy link
Author

AndersLindas commented Sep 4, 2024

We we just running peacefully on 2022.1.15f1 when Unity suddenly decided to start using a different Android package (for this unity version). All never versions since then seems to have this problem (we tested both 2022.3.44 and 6000.0.17).

I will try out the --opt parameter. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants