UXDivers / Grial-UI-Kit-Support

This is our public repository for customers to report bugs about Grial UI Kit for Xamarin Forms
61 stars 26 forks source link

Error MT2002: Failed to resolve "System.Object Xamarin.Forms.ElementTemplate::CreateContent()" #62

Open fromdw opened 8 years ago

fromdw commented 8 years ago

I am trying debug app on phone. Then I got below error.

Error MT2002: Failed to resolve "System.Object Xamarin.Forms.ElementTemplate::CreateContent()" reference from "Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" file MTOUCH.

If I run app on simulator is no issue. Does someone has same problem? I copied the Grial sample files to a exists project.

jpbrocca commented 8 years ago

Hi @fromdw,

Couple of questions:

  1. Have your tried to debug the Grial sample, and did you get the same error ?
  2. Which phone are you using ?
  3. Which version of Grial are you using ?
  4. Which Xamarin Forms are you using ?

Thanks, JP

fromdw commented 8 years ago

Hi Jpbrocca

  1. I tried debug Grial sample before, did not get issue.
  2. iPhone6
  3. 1.5
  4. 2.0.0.0

Thanks, Wei

jpbrocca commented 8 years ago

Hi @fromdw,

If this is not happening on Grial sample, then it seems the problem could be related to some missing file or maybe the build action on some file you copied...but I am not sure since it seems to be only happening on your device which is strange.

Did you followed the steps from here while you copied files?: https://github.com/UXDivers/Grial-UI-Kit-Support/wiki/Adding-Grial-on-existing-project:-Setting-up-Grial-theme-required-files#ios

Best, JP

fromdw commented 8 years ago

@jpbrocca ,

I followed the steps. I could run sample on simulator ,and iphone or andriod device. but not my app on device.

Thanks, Wei

jpbrocca commented 8 years ago

Hi @fromdw,

it is hard to find the cause not seeing the project...are you using any third party control besides Grial on your project ?

@LeoHere: Can you think of any possible reason that could be making this happen on an iOS device and not on an emulator?

Best, JP