Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Bundle version field accepts new line

Discussion in 'Editor & General Support' started by tmfbk, Apr 12, 2024.

  1. tmfbk

    tmfbk

    Joined:
    Nov 27, 2021
    Posts:
    2
    In Project Settings -> Player -> Version.
    The input field accepts line breaks. It is actually a text field. Accidentally this caused issues with our build pipeline. Services like Firebase Crashlytics, which rely on the version, had issues reading JSON file(s) which had the erroneous bundle version. In our case someone had made the error either by pasting into the field or accidentally making a new line while typing. This led to invalid JSON files due to the accidental line break. The field doesn't represent the correct data type hence it was difficult to identify the error.

    Suggested fixes - change the field to input field or leave it as textfield but show multiple lines. Not sure why people would need multiple lines for their version strategy.

    I hope this helps someone.