我正在尝试通过 NuGet 在 PCL iOS 项目中安装 Xamarin.Mobile,但出现此错误!
Could not install package 'xamstore-xamarin.mobile 0.7.1'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
这是我的 AppDelegate
// 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();
Xamarin.FormsMaps.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
我的 SDK 版本是 10.1。
Xamarin.Mobile 在 Android 项目中运行良好。
知道如何解决这个问题吗?
最佳答案
使用 Microsoft 问题解决方案。
清理您的解决方案并再次重建。
关于ios - 无法在 PCL iOS 项目中安装 Xamarin.Mobile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40803991/