Bug 43329 - CTCallCenter constructor build error
Summary: CTCallCenter constructor build error
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.99 (iOS 10 previews)
Hardware: Macintosh Mac OS
: Highest normal
Target Milestone: Xcode8 (iOS10)
Assignee: Sebastien Pouliot
URL:
: 43355 ()
Depends on:
Blocks:
 
Reported: 2016-08-13 17:00 UTC by ulrike_axen
Modified: 2016-08-23 12:14 UTC (History)
5 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 ulrike_axen 2016-08-13 17:00:45 UTC
As far as I can tell from the documentation, the no-arg constructor to CTCallCenter should be valid. At any rate, there is no other constructor that works. This does not throw an error on the stable channel, but throws an error on the alpha channel:

CallInfo.cs(14,18): error CS1729: The type `CoreTelephony.CTCallCenter' does not contain a constructor that takes `0' arguments
	CallInfo.cs(34,26): error CS1540: Cannot access protected member `CoreTelephony.CTCallCenter.CTCallCenter(Foundation.NSObjectFlag)' via a qualifier of type `CoreTelephony.CTCallCenter'. The qualifier must be of type `xF.Common.CallInfo' or derived from it
	CallInfo.cs(34,26): error CS1729: The type `CoreTelephony.CTCallCenter' does not contain a constructor that takes `0' arguments
	CallInfo.cs(54,26): error CS1540: Cannot access protected member `CoreTelephony.CTCallCenter.CTCallCenter(Foundation.NSObjectFlag)' via a qualifier of type `CoreTelephony.CTCallCenter'. The qualifier must be of type `xF.Common.CallInfo' or derived from it
	CallInfo.cs(54,26): error CS1729: The type `CoreTelephony.CTCallCenter' does not contain a constructor that takes `0' arguments
===
Comment 1 Jon Goldberger [MSFT] 2016-08-15 18:23:03 UTC
I am able to reproduce this issue on the Current Alpha channel (C8)

A parameterless public constructor is available in the current Stable channel (C7SR1)
Comment 2 Sebastien Pouliot 2016-08-16 01:25:01 UTC
*** Bug 43355 has been marked as a duplicate of this bug. ***
Comment 3 Sebastien Pouliot 2016-08-16 01:28:00 UTC
It was broken (SIGILL) in an earlier beta (2) and was commented, pending investigation, as it crashed the test suite on our bots.

I'll ensure it's fixed and re-enable it for future builds.
Comment 4 Sebastien Pouliot 2016-08-16 20:33:48 UTC
https://github.com/xamarin/xamarin-macios/pull/617
Comment 5 Sebastien Pouliot 2016-08-16 21:36:39 UTC
Merged in xamarin-macios/xcode8 285756a0832fcbf7125f7b515a647dfda4ab69eb
Comment 6 Rajneesh Kumar 2016-08-23 12:14:11 UTC
Reproduced Status: REPRODUCED
Build Info: xamarin.ios-9.99.2.40
Screencast: http://www.screencast.com/t/g19xdNxDw

Verify Status: VERIFIED
Build Info: xamarin.ios-9.99.4.14
Screencast: http://www.screencast.com/t/1OxK0RjeVK

I observed that this issue has been fixed, now user in not getting any build error while using following code in .cs file
"var callcenter = new CoreTelephony.CTCallCenter ();"

This issue has been fixed, hence I am closing this issue.

thanks..!


Environment Info: https://gist.github.com/Rajneesh360Logica/0c01a066b456858dfdea8d0456fc8ffa