Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Strange Compile Error After Unified Update

$
0
0

I updated my Xamarin Forms project to 1.3.1 yesterday via NuGet. After the update (and the update to Xamarin Studio on OS X), I ran the migration utility in Studio to convert my iOS project to the Unified API. I modified the App class in my Forms (PCL) project and made the necessary adjustments to the AppDelegate class:

`
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

    using Foundation;
    using UIKit;

    using Xamarin.Forms;

    namespace HeraMobile.iOS
    {
        [Register (\"AppDelegate\")]
        public partial class AppDelegate : Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
        {
            public override bool FinishedLaunching (UIApplication app, NSDictionary options)
            {
                Forms.Init ();
                Xamarin.FormsMaps.Init ();

                LoadApplication (new App ());

                return true;
            }
        }
    }

`
When I compile I get two errors in the AppDelegate class that make no sense to me. They are:

/Users/todd/projects/xamarin/HeraMobile/iOS/AppDelegate.cs(45,45): Error CS0234: The type or namespace namePlatform' does not exist in the namespace Xamarin.Forms'. Are you missing an assembly reference? (CS0234) (HeraMobile.iOS)

And

/Users/todd/projects/xamarin/HeraMobile/iOS/AppDelegate.cs(24,24): Error CS0115:HeraMobile.iOS.AppDelegate.FinishedLaunching(UIKit.UIApplication, Foundation.NSDictionary)' is marked as an override but no suitable method found to override (CS0115) (HeraMobile.iOS)`

I thought I removed all references to the classic API but I clearly didn't? Anyone else seeing an error like this?


Viewing all articles
Browse latest Browse all 58056

Trending Articles