Hi,
i'm working on my first app with xamarin forms and SfChart.
This app works great with Android but i can't execute it for iOS.
References for iOS are
Syncfusion.SfChart.iOS
Syncfusion.SfChart.XForms
Syncfusion.SfChart.XForms.iOS
and in AppDelegate.cs i have created an instance of SfCharts.
this is my AppDelegate.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
using Syncfusion.SfChart.XForms.iOS.Renderers;
namespace Kleos_SmartSight.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
LoadApplication(new App());
new SfChartRenderer();
return base.FinishedLaunching(app, options);
}
}
}
when i try to test my application on iOS i have this message:
Failed to resolve "System.Object Xamarin.Forms.ElementTemplate::CreateContent()" reference from "Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets 681
what's the problem??
if i remove the new instance statement my application can start but can't shows charts.