Search Issue Tracker
Won't Fix
Votes
0
Found in
5.6.1f1
Issue ID
914522
Regression
No
[IL2CPP][iOS] Some public UI text elements set in Inspector become null in iOS IL2CPP builds
Public UI text elements set in Inspector get stripped on iOS builds.
Steps to reproduce:
1) Open the attached project.
2) Build for iOS.
3) Run on a device.
Observe the exception in Xcode console:
NullReferenceException: A null value was found where an object instance was required.
at Search_Hotel..ctor () [0x00000] in <filename unknown>:0
When using Mono2x, it crashes in:
EDTPlanner`m_wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr at mscorlib.dll.s:354324
This reproduces with code stripping disabled as well. There is a link.xml in the project, which preserves UntiyEngine.UI.Text, but that doesn't help with the issue.
Reproduced on:
2017.1.0a1, 2017.1.0b7, 5.6.1p1
Device tested:
iPhone 7 Plus iOS 10.3.2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [VFX] An error occurs when creating a subgraph after deleting an identical subgraph
- GameObjects disappear when moving away from the Camera
- Missing Behaviour warning is displayed when reloading domain in Play mode
- NullReferenceException when setting 'isTextObjectScaleStatic' to false on a disabled TextMeshPro GameObject
- Shader Stripping Custom Options disappear when exiting Play mode without reloading Domain
Add comment