Skip to content

[Xamarin.Forms] iOS build errors in Visual Studio for Windows #18

@gaelian

Description

@gaelian

Using Visual Studio for Windows (17.1.6). Installed FSharp.Mobile.Templates then ran:

> mkdir TestXamApp
> cd TestXamApp
> dotnet new xf-fsharp

Then added the generated projects to a blank Visual Studio solution. I've successfully downloaded the required dependencies from NuGet and GitHub Packages by editing the nuget.config file to add the relevant authentication details. Building the Android and shared projects is successful, but the iOS project reports these build errors:

FSC : error FS1108: The type 'UIView' is required here and is unavailable. You must add a reference to assembly 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'.
C:\Projects\TestXamApp\iOS\AppDelegate.fs(10,13): error FS0039: The type 'FormsApplicationDelegate' is not defined. Maybe you want one of the following:�   UIApplicationDelegate�   UIApplicationState�   IUIApplicationDelegate
C:\Projects\TestXamApp\iOS\AppDelegate.fs(12,19): error FS0855: No abstract or interface member was found that corresponds to this override

The latter error is referring to the FinishedLaunching override in AppDelegate.fs. Am I doing something wrong, or should this be working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions