Page 1 of 1

Can not resolve reference: MonoTouch.Foundation.NSTimer

Posted: Thu Sep 13, 2012 2:59 pm
by 17262881
Hi,

I recently upgraded MonoDevelop and MonoTouch to the latest versions. After doing so, I get the following error when I compile

Error MT2002: Can not resolve reference: System.Void MonoTouch.Foundation.NSTimer::.ctor() (MT2002)

I looked this up in the MonoTouch forums and they indicate it may be a problem because of the incompatibility with the latest MonoTouch.dll and IOSTchart.dll

http://monotouch.2284126.n4.nabble.com/ ... 56884.html

> I just dropped back to the Stable channel and downgraded to MonoDevelop 3.0.3.5 and MonoTouch 5.2.1.3 and the error went away. I am starting to believe this is not a problem in my project.
It's not.
> In 5.4 NSTimer does not have a default constructor (because such an It's (likely) a mismatch between monotouch.dll (5.4) and IOSTChart.dll, where the later depends on something (i.e. the default constructor) removed.


I don't want to downgrade the MonoDevelop and MonoTouch as I am working on multiple projects. Can you please provide a possible solution?

Thanks
Ashok

Re: Can not resolve reference: MonoTouch.Foundation.NSTimer

Posted: Thu Sep 13, 2012 9:29 pm
by 17262881
Turns out it was a problem with MonoTouch dll. Found the solution, sorry.

Re: Can not resolve reference: MonoTouch.Foundation.NSTimer

Posted: Fri Sep 14, 2012 9:53 am
by 10050769
Hello NetSoft,

Thanks for information. I am glad that you can solve your problem.

Thanks,