Bug 23041 - Type `MonoTouch.UIKit.UIPopoverControllerDelegate' in interface list is not an interface
Summary: Type `MonoTouch.UIKit.UIPopoverControllerDelegate' in interface list is not a...
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 7.1.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
: 23150 ()
Depends on:
Blocks:
 
Reported: 2014-09-16 07:42 UTC by Fernando
Modified: 2014-10-01 04:42 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Fernando 2014-09-16 07:42:31 UTC
I have a Xamarin solution that contains a iOS binding project. It was working fine until I updated Xamarin (and components) to last Beta version 5.4 build 216.

The error I get is:
/Users/fernandop/GitLocalV2/icatalogapp/xn/iCatalogXn.Binding.iOS/obj/iPhoneSimulator/DebugUSADev/ios/iCatalogXn.Binding.iOS/BindingMainTabBarControllerScreensHandler.g.cs(19,19): Error CS0527: Type `MonoTouch.UIKit.UIPopoverControllerDelegate' in interface list is not an interface (CS0527) (iCatalogXn.Binding.iOS)

this is the line where it fails (code generated by the compiler)

namespace iCatalogXn.Binding.iOS {
	[Protocol (Name = "BindingMainTabBarControllerScreensHandler", WrapperType = typeof (BindingMainTabBarControllerScreensHandlerWrapper))]
	public interface IBindingMainTabBarControllerScreensHandler : INativeObject, IDisposable, 
		MonoTouch.UIKit.UIPopoverControllerDelegate
		
	{
	}


This is my code in ApiDefinition.cs:


[Model, BaseType (typeof (UIPopoverControllerDelegate))]
	[Protocol]
	public partial interface BindingMainTabBarControllerScreensHandler {
}


Note: it works fine in version 5.2 build 384


this is the current version with the issue, please advise:

=== Xamarin Studio ===

Version 5.4 (build 216)
Installation UUID: 725bb85a-a10e-42a9-b135-5ac1668e498a
Runtime:
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.Mac ===

Version:

=== Xamarin.iOS ===

Version: 8.0.0.9 (Business Edition)
Hash: 436246d
Branch: 
Build date: 2014-09-10 00:04:26-0400

=== Xamarin.Android ===

Version: 4.16.0 (Business Edition)
Android SDK: /Users/fernandop/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Build Information ===

Release ID: 504000216
Git revision: bf73535e350da9a84b6990c72149b84467757c52
Build date: 2014-09-09 15:40:19-04
Xamarin addins: cb699c7d52f13def4e9746f8086e9f24ef6d894f

=== Operating System ===

Mac OS X 10.8.5
Darwin fernandos-mac.home 12.5.0 Darwin Kernel Version 12.5.0
    Sun Sep 29 13:33:47 PDT 2013
    root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
Comment 1 Rolf Bjarne Kvinge [MSFT] 2014-09-17 10:59:10 UTC
Fixed.

maccore/master: c5fc2d8c0209331feda60533d455e2169a4b629b
monotouch/master: f4d499719553d605dea712f34e1334a6fbb7b286

maccore/monotouch-8.2.0-branch: cf2fb5810d653404e012e66ec3b343f98fa7cda9
monotouch/monotouch-8.2.0-branch: c446f9442aed56a59e3db78dee00c62a1df9ddc6
Comment 2 Rolf Bjarne Kvinge [MSFT] 2014-09-18 11:25:30 UTC
*** Bug 23150 has been marked as a duplicate of this bug. ***
Comment 3 Ram Chandra 2014-09-23 05:18:34 UTC
I have checked this issue and I am able to reproduce this issue with following builds:

Xamarin.iOS: 8.0.0.63 
Screencast: http://www.screencast.com/t/ofzT3uGEsFQ

To verify this issue I have checked this issue with following builds:

Mac OS X 10.9.5
Xamarin Studio: 5.5 (build 200)
Xamarin.iOS: 8.2.0.177 (Business Edition)
Xcode 6.0.1 (6528)
=== Build Information ===
Release ID: 505000200
Git revision: 94e0df1b22f30d11dcd3e315c0a8263832b1c61a
Build date: 2014-09-19 11:52:29-04
Xamarin addins: 86dc064f2e64d7f4f4ed05edef3019f6b239a7be

I have created a binding project and write the following code in ApiDefinition.cs file:

[Model, BaseType (typeof (UIPopoverControllerDelegate))]
    [Protocol]
    public partial interface BindingMainTabBarControllerScreensHandler {
}

I have added the reference of  the binding project to the iOS project and I observed that I am not getting any build error when I try to build the application and application is deploy successfully.

Screencast: http://www.screencast.com/t/E1c4n0IU

This issue has been fixed. Hence, I am closing this issue.
Comment 4 Fernando 2014-09-30 09:23:53 UTC
Do you know when Xamarin.iOS: 8.2.0.177 will be deployed to beta channel? Thanks.
Comment 5 Rolf Bjarne Kvinge [MSFT] 2014-10-01 03:38:44 UTC
@Fernando, you can use the current version in the beta channel (8.2.0.176), the difference in those two versions is not related to this bug.
Comment 6 Fernando 2014-10-01 04:42:44 UTC
Good. Thanks