ios - 无法在 PCL iOS 项目中安装 Xamarin.Mobile

标签 ios xamarin.ios xamarin.mobile

我正在尝试通过 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/

相关文章:

ios - leftCalloutAccessoryView 图像引用?

ios - 解析数据并将其插入 SQLITE - ios

android - 用于跨平台开发的 OpenAL

iphone - 警告 : Supported orientations are not matched pairs (Info. plist)

ios - Monotouch - iPhone静态加载Admob插页式广告

xamarin.ios - 如何在跨平台应用程序中共享 Xamarin.Mobile 相关代码

ios - 文本字段 setEnabled 与 NSUserDefaults

c# - MonoTouch 或 iOS 网络堆栈是否正在占用我的 HTTP DELETE 请求正文?

mvvm - Xamarin: MVVM交叉信息