Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0a1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.2.3f1
2019.3.0a1
2020.1.0a1
Issue ID
1181771
Regression
Yes
[Mobile]Build fails on iOS or Android platform when DLL compiled for C# 7.0 is included with IL2CPP error
How to reproduce:
1. Open the attached il2cppbug.zip project
2. Build for iOS or Android platform
Actual: Build fails with error:
stdout:
IL2CPP error for method 'System.String RestSharp.Extensions.StringExtensions::ToPascalCase(System.String,System.Boolean,System.Globalization.CultureInfo)' in assembly '/Users/vita/Downloads/case_1181771-il2cppbug/Temp/StagingArea/Data/Managed/RestSharp.dll'
(see the full error in the users description)
Reproducible with: 2018.3.0a1, 2018.3.14f1, 2020.1.0a3
Not reproducible with: 2017.4.32f1, 2018.2.21f1
Not reproducible with: macOS and Windows Standalone
Note:
- On 2018.2.21f1the error is also thrown, but the build succeeds
- The RestSharp DLL was built from the 106.8.9 sources available from https://github.com/restsharp/RestSharp, using CSC version 3.100.19.26603 (9d80dea7):
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
- Crash on __pthread_kill when opening a specific project
- "Draw Additional Lights Shadowmap" calls increase when custom MaterialBlockProperty is used
- Crash on _platform_memmove when importing the "Dragon Crashers - URP 2D Sample Project" to a new 2D project
- "Shader is not supported on this GPU" warnings and and shaders are not loading when building the project for non-Chromium browsers
- [iOS][URP] The screen flickers and the "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously
Resolution Note:
The RestSharp.dll in this case was built against .NET Core or .NET Standard 2.1, neither of which Unity supports. It should be built against .NET Framework 4.7.1 or .NET Standard 2.0.