This is a migrated thread and some comments may be shown as answers.

Builds in simulator - error on device build ?

3 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 19 Nov 2017, 06:42 PM

Hi there,

This is my second try to use Telerik UI for Xamarin Forms.

I have added the NuGet packages from Telerik NuGet server, and everything builds/works when running in the simulator (I use the RadSegmentedControl).

But, when I compile for the phone, I keep getting an error about some Skiasharp. I dont even use Skiasharp (gauge control), so I have tried every possible solution to remove the reference.

I get this error, when compiling in Visual Studio for Mac :

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(777,3): warning MSB6002: The command-line for the "MTouch" task is too long. Command-lines longer than 32000 characters are likely to fail. Try reducing the length of the command-line by breaking down the call to "MTouch" into multiple calls with fewer parameters per call.
MTOUCH : warning MT0127: Incremental builds have been disabled because this version of Xamarin.iOS does not support incremental builds in projects that include more than one third-party binding libraries.
MTOUCH : error MT2101: Can't resolve the reference 'SkiaSharp.SKTypeface SkiaSharp.SKTypeface::FromStream(System.IO.Stream,System.Int32)', referenced from the method 'System.Void Telerik.XamarinForms.SkiaSharp.SkiaUtilities::EnsureFontelloTypeface()' in 'SkiaSharp, Version=1.59.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.

3 Answers, 1 is accepted

Sort by
0
Tony
Top achievements
Rank 1
answered on 19 Nov 2017, 09:34 PM
I just tried compiling and deploying the "SDKBrowser" sample to my phone - surprisingly, that went okay ...
0
Laron Walker
Top achievements
Rank 1
answered on 22 Nov 2017, 01:27 PM
Check if your SkiaSharp nuggets references are update.  '1.59.2' fix the issues for me
0
Stefan Nenchev
Telerik team
answered on 22 Nov 2017, 04:11 PM
Hello, Tony,

As advised in the ticket you have created, you need to add a reference to the SkiaSharp library even though you are not using controls that need it. Otherwise, you can use the approach explained in this article - Lite Assemblies. If you reference the Lite Telerik SkiaSharp assembly, there is no need to reference the SkiaSharp binaries.

Have a great rest of the week.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Tony
Top achievements
Rank 1
Answers by
Tony
Top achievements
Rank 1
Laron Walker
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or