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 nvoglv64.dll when opening a project
- [RenderGraph] [CameraStacking] Passes are failing when CameraStacking and RG are enabled
- Physics and Raycast have different behavior when enum is exposed in the Editor
- TextField's text is mixed up and overlapping when "Noto Sans-Display" font is used
- TutorialManager Warnings are thrown when creating Test Track, LEGO or 2D Platform microgame template projects
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.