I have updated Telerik Xamarin Controls to latest version and now can not build ios app with MS AppCenter.
I'm not even using RadBusyIndicator
Here is full error description:
MTOUCH : error MT2101: Can't resolve the reference 'System.Object Telerik.XamarinForms.Common.RadPlatform::GetRenderer(Xamarin.Forms.VisualElement)', referenced from the method 'System.Void Telerik.XamarinForms.Primitives.RadBusyIndicator::OnPropertyChanged(System.String)' in 'Telerik.XamarinForms.Common, Version=2018.1.221.240, Culture=neutral, PublicKeyToken=null'. [/Users/vsts/agent/2.129.1/work/1/s/iOS/Link.iOS.csproj]
5 Answers, 1 is accepted
Are you using our NuGet packages or you are using references to our binaries?
If you are using references to our binaries, could you check if your portable project uses the binaries from Portable folder, the iOS project uses the binaries from the iOS folder, for Android from Android folder and for UWP from UWP folder?
If your project references are correct, could you create a sample project, which you can not build using AppCenter and send it to us, so we could investigate the issue and fix it?
Getting something similar. Updated my Telerik Xamarin, updated Telerik via Nuget, now when building under MS App Center, get the following error:
MTOUCH : error MT2101: Can't resolve the reference 'System.Void ObjCRuntime.BlockLiteral::SetupBlockUnsafe(System.Delegate,System.Delegate)', referenced from the method 'System.Void TelerikUI.TKListView::PerformBatchUpdates(System.Action,System.Action`1<System.Boolean>)' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [/Users/vsts/agent/2.131.0/work/1/s/BrokerBuddy_XA/BrokerBuddy_XA.iOS/BrokerBuddy_XA.iOS.csproj]
Telerik Version: 2018.1.405.2
Xamarin Forms Version: 220.127.116.114934
Have confirmed that the Portable is pulling from the right packages directory, same with the iOS. Builds fine when VS2017 is connected to a Mac for the iPhoneSimulator.
From the error, you have sent it seems the issue is related to the RadListView. I have created a test project which has a ListView with several strings as an ItemsSource and I have been able to build it successfully in MS App Center. Could you provide more details about the features of the RadListView you are using, so we can modify our project and reproduce the issue?
I am facing same problem in Azure DevOps iOS build agent with recent package from Telerik(Telerik.UI.for.Xamarin)
Error with Xamarin.iOS Build pipeline:
MTOUCH : error MT2101: Can't resolve the reference 'System.String System.String::Split(System.Char,System.StringSplitOptions)', referenced from the method 'System.Void Telerik.XamarinForms.Common.PlatformCulture::.ctor(System.String)' in 'mscorlib, Version=18.104.22.168, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
In Xamarin.Android build pipeline works without any error.
Can anyone help me on this.
We've come across such an error related to an older version of Xamarin.iOS that is used on the build machine. I have noticed that updating to the latest Xamarin.iOS as well as Visual Studio for Mac resolves the issue on my side.
Can you check the versions of Xamarin.iOS and VS for Mac, so we could confirm that's the same case? Can you test building the app on a different hosted or local Mac?
The other thing that comes to my mind is to check the Linker behavior of the iOS project - try it with both "None" and "Link Framework SDKs Only".
Looking forward to your reply.