2015-07-21 115 views
0

我創造了Xamarin窗體應用程序,我會告訴與OxyPlot圖表,上運行Android和Windows Phone運行Hello世界OxyPlot,但我有一個IOS的問題。當仿真器加載的應用程序發送以下內容:Oxyplot運行Xamarin形成的iOS沒有發現裁判OxyPlot.Xamarin.iOS

{System.IO.FileNotFoundException:未能加載文件或程序集 'OxyPlot.Xamarin.iOS'}

且堆棧:

System.AppDomain .Load(assemblyRef = {OxyPlot.Xamarin.iOS,版本= 2015.1.889.0文化=中性公鑰=空},assemblySecurity =(NULL))中/用戶/助洗劑/數據/通道/ 1962/8b265d64 /源極/單/mcs/class/corlib/System/AppDomain.cs:706

它似乎並沒有提到Packete Oxyplot.xamarin.iOS,但沒有如何解決它。

我已經加入OxyPlot Xamarin形式的NuGet發佈前,在每個平臺。正如我在android和windows phone(使用visual studio)中提到的那樣工作正常。

我感謝您的關注,如果需要更多的數據敬請關注。

問候

回答

0

請確保您已經安裝了https://www.nuget.org/packages/OxyPlot.Xamarin.Forms/。然後,你只需要Xamarin.Forms.Forms.Init()之前初始化通過添加以下調用OxyPlot渲染:

的iOS:OxyPlot.Xamarin.Forms.Platform.iOS.Forms.Init();

安卓:OxyPlot.Xamarin.Forms.Platform.Android.Forms.Init();

WinPhone:OxyPlot.Xamarin.Forms.Platform.WinPhone.Forms.Init();

OR

這是可能的該組件因Xamarin鏈接器而被切斷。地址:

在iOS的項目 FinishedLaunching方法

var ignoreOxyplot = typeof(OxyPlot.Xamarin.Forms.Platform.iOS.PlotViewRenderer)

參見:http://forums.xamarin.com/discussion/comment/122219

+0

謝謝回覆,添加的typeof和品牌我下面的錯誤: 類型「OxyPlot.Xamarin.iOS.PlotView」在未被引用考慮加入到參考集中定義組件'OxyPlot.Xamarin.iOS',版本= 2015.1.889.0,Culture = neutral,PublicKeyToken = null' – cronos1412

+0

只需刪除所有Oxyplot包,dll等,然後添加OxyPlot.Xamarin.Forms包。 –

+0

嗨,感謝您提供的信息,解決方案是除了Oxyplot.Xamarin.iOS.dll之外尋找並添加它作爲一個新的參考,它已經工作! – cronos1412