Bug 7909 - Can not resolve reference: MonoTouch.CoreLocation.CLAuthorizationStatus
Summary: Can not resolve reference: MonoTouch.CoreLocation.CLAuthorizationStatus
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 6.1.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-10-19 05:39 UTC by Dylan
Modified: 2012-10-22 04:47 UTC (History)
2 users (show)

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:

Description Dylan 2012-10-19 05:39:05 UTC
I am getting this very obscure error when trying to build for a device. This does not happen when building for the simulator. I have removed all references to corelocation in my code and the problem still persists. One of my developers fixed this issue once before by completely remaking the solution, but this is not a valid solution. 

Please can anyone provide any light on this problem. I think it can be caused by moving files around in a project, but am not sure. I just cannot build now and this is highly frustrating as there is no reference point on what to do to fix. 

Error MT2002: Can not resolve reference: MonoTouch.CoreLocation.CLAuthorizationStatus MonoTouch.CoreLocation.CLAuthroziationChangedEventArgs::get_Status() (MT2002) (NashuaMobile.MT)
Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-10-19 06:15:01 UTC
Exactly which MonoTouch version are you using? And are you using any third-party libraries (such as Xamarin.Mobile)?
Comment 2 Dylan 2012-10-22 04:07:03 UTC
Looks like a Xamarin.Mobile issue. I removed the reference completely and rewrote all the location logic without the dll and I no longer get the error.
Comment 3 Rolf Bjarne Kvinge [MSFT] 2012-10-22 04:47:24 UTC
Xamarin.Mobile was updated recently for MonoTouch 6, it's very likely that the updated version would work.