Search Issue Tracker
By Design
Duplicate in 2021.2.X
Votes
2
Found in
2020.3.31f1
2021.2
2022.1
2022.2
Issue ID
1412412
Regression
Yes
Spaces and symbols of the Project name are changed to hyphens causing "Invalid characters" warning in the Bundle Identifier
How to reproduce:
1. Create a new project
2. Go to the Player Settings
3. Go to the Player tab and observe the Bundle Identifier
Expected result: Project name is not changed and no warnings
Actual result: Hyphens are added to the Bundle Identifier and the "Invalid characters have been removed from the Application Identifier" warning appears
Reproducible with: 2020.3.31f1, 2020.3.32f1, 2021.2.17f1, 2022.1.0b13, 2022.2.0a8
Not reproducible with: 2019.4.37f1, 2020.3.30f1
Note: Reproducible with macOS, Windows
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (2022.2.X):
This is the expected behaviour.
The change in the validation of the Application Identifier has been done in order to prevent having missing segments in the default Application Identifier in case either the Company Name or the Product Name contains only invalid characters (see case 1352216). The warning is there just to tell that invalid characters have been removed from the default Application Identifier, so it won't mirror the Company Name and the Product Name exactly. In case the Application Identifier itself is invalid, then an error will be displayed instead of a warning.
As always, the Application Identifier for each platform will be updated only when opening the Player settings of the corresponding platform. If the default Application Identifier is not the desired one, it can always be changed after checking the setting Override Default Bundle Identifier (or Override Default Package Name, for Android).
For more details, please check our documentation:
- macOS Player settings: https://docs.unity3d.com/Manual/PlayerSettings-macOS.html#AppStore
- iOS Player settings: https://docs.unity3d.com/2022.2/Documentation/Manual/class-PlayerSettingsiOS.html#Identification
- Android Player settings: https://docs.unity3d.com/Manual/class-PlayerSettingsAndroid.html#Identification