Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7909229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:19:24+00:00 2026-06-03T12:19:24+00:00

I have a MonoTouch app, when I compile it for the device, I get

  • 0

I have a MonoTouch app, when I compile it for the device, I get the following error:

Error MT2002: Can not resolve reference: System.Boolean System.Type::op_Equality(System.Type,System.Type) (MT2002)

It works fine in the simulator, however occasionally I’ll get a MissingMethodException with the same type.

I have no 3rd party libraries. All of the code is my own. Any ideas?

Edit Here are my 3 projects and all their references.

Project 1: Mobile.Libraries

  • monotouch
  • System
  • System.Core
  • System.Xml

Project 2: Mobile.Core

  • Mobile.Libraries
  • System
  • System.Core
  • System.Xml

Project 3: Mobile.IOS

  • monotouch
  • Mobile.Core
  • System
  • System.Core
  • System.Xml
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:19:25+00:00Added an answer on June 3, 2026 at 12:19 pm

    Like @Jonathan.Peppers said this occurs when you use a compiled .dll that was built against the full, .NET4, profile.

    MonoTouch Base Class Libraries (BCM) provides a superset of the Silverlight profile (2.1) with some 4.0 additions. So adding pre-compiled binaries from another framework can requires some types/methods that are not present in MonoTouch BCL.

    The solution is to rebuild all your .dll against the BCL assemblies that are shipped with MonoTouch. That will ensure the compiler will only uses symbols that are available.

    Why does it works on the iOS simulator ?

    That’s because the JIT is used. Since it’s compiled Just In Time you might never reach the missing symbols so it can work until you hit the missing code (and get a runtime error).

    On the other hand when you use the device (or the linker) then all the symbols are loaded (and compiled for AOT). Anything missing will be found ahead of time so you get an build-time error like the one above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following MonoTouch program: using System.Drawing; using MonoTouch.Foundation; using MonoTouch.UIKit; using System;
Whenever I try uploading to a device from MonoTouch, I get the following console
I have a MonoTouch iPhone app which has a UITableViewController as it's main view
I have got an application developed with Monotouch 4.0.7. This app is running on
I have a view in a MonoTouch app using MvvmCross framework that I would
I am creating a monotouch ipad app. I have a popover with tableview in
since three days i have the monotouch personal edition. I developed an app in
I have an app in MonoTouch for iPad (iOS 4.2). I have a main
I have created a small iPhone app using MonoTouch - got all provisioning files
I have an app which uses btouch'd bindings for WEPopover. You can find the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.