Search code examples
iosxamarinxamarin.iosxamarin-studio

Error CS1525: Unexpected symbol


I m using:

Xamarin 5.8.3 (build 1)
Xcode 6.3.1

Having the above error in this line:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

In one of my .xib.

The error is:

Error CS1525: Unexpected symbol `<' (CS1525)

Any idea where this weird Error/Bug coming from?

Thanks in advance


Solution

  • You're trying to compile a .xib as C# source code.

    That won't work.

    Right-click the file in the solution explorer, and select Build Action -> InterfaceDefinition.