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

Can't resolve the reference 'System.Object

5 Answers 182 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 28 Feb 2018, 09:32 PM

Hi All

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

Sort by
0
Nikolay Demirev
Telerik team
answered on 02 Mar 2018, 10:01 AM
Hello Josh,

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?

Regards,
Nikolay Demirev
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
0
Sean
Top achievements
Rank 1
answered on 12 Apr 2018, 04:39 PM

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: 2.5.1.444934

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.

Cam.

0
Nikolay Demirev
Telerik team
answered on 17 Apr 2018, 08:27 AM
Hi Sean,

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?

Regards,
Nikolay Demirev
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
0
Pradeep
Top achievements
Rank 1
answered on 05 Feb 2019, 10:14 AM

Hi All,

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=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

 

Telerik.UI.for.Xamarin: 2019.1.131.1
Xamarin.Forms: 3.4.0.1029999

 

In Xamarin.Android build pipeline works without any error.

Can anyone help me on this.

 

Thanks, 

Pradeep

0
Yana
Telerik team
answered on 05 Feb 2019, 01:58 PM
Hello Pradeep,

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.

Regards,
Yana
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
Josh
Top achievements
Rank 1
Answers by
Nikolay Demirev
Telerik team
Sean
Top achievements
Rank 1
Pradeep
Top achievements
Rank 1
Yana
Telerik team
Share this question
or