Search Issue Tracker
Fixed
Votes
0
Found in
5.1.1p4
Issue ID
711243
Regression
No
IL2CPP iOS build strips Attribute Getter, causing a runtime error
How to reproduce:
1. Open attached project
2. Open scene test.unity
3. Select the Main Camera gameobject
4. In the Proto Test component add 'testFile' in the Filename text box
5. Build to iOS and run
- Note the error:
ArgumentException: Get Method not found for 'SkipConstructor'
at System.Reflection.MonoProperty.GetValue (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00000] in <filename unknown>:0
at ProtoBuf.Meta.AttributeMap+ReflectionAttributeMap.TryGet (System.String key, Boolean publicOnly, System.Object& value)
[...]
Workaround the issue by adding a link.xml file to the project telling the code stripper to preserve the Attribute class in the protobuf-net assembly.
Comments (3)
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
teunververs
Jun 26, 2020 11:40
I'm having this problem right now, why is it marked as solved?
B1QB0SS1
Dec 05, 2019 22:20
anything?
J_P_
Feb 20, 2019 23:12
Can you provide the link.xml entry for the workaround? Having trouble getting it to work.