Search Issue Tracker
Fixed in 2017.2.0f3
Fixed in 5.6.X
Votes
0
Found in
5.6.2p1
Issue ID
928527
Regression
No
PlayerSettings.applicationIdentifier returns identifier based on the last manually selected platform through the Player Settings
Reproduction steps:
1. Open the attached project.
2. Go to Edit > Build Settings > Player settings.
3. Notice, that the Bundle identifier is set to "com.***.AppIdStandalone"
4. Switch to iOS plaform.
5. Notice, that the Bundle identifier is set to "com.***.AppIdIOS"
6. Switch to Standalone platform.
7. Exit the Editor.
8. Navigate to the project folder through the Terminal.
9. Launch the Editor through the Terminal using these launch options: "-quit -batchmode -buildTarget ios -executeMethod BuildScript.Build -logfile ./out.txt".
10. Open the out.txt file in the project folder.
- Debug.Log (EditorUserBuildSettings.activeBuildTarget); and Debug.Log (PlayerSettings.applicationIdentifier); prints the values to the out.txt log.
Actual result:
- Active build target was successfully set to iOS, but PlayerSettings.applicationIdentifier still returns the standalone identifier (com.***.AppIdStandalone).
- Log shows iOS and com.***.AppIdStandalone.
Expected result:
- Log shows iOS and com.***.AppIdIOS.
Workaround:
- Set the active build target to iOS through the Editor before launching the script.
Reproduced with:
5.5.0f1, 5.6.2p2, 2017.1.0f3
Not reproducible with:
2017.2.0b2
Note:
- Fixed in 2017.2, but it should be backported to 5.6. There was no case for this issue in the fogbugz.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment