Trouble with initial setup

Topics: iOS
Nov 13, 2012 at 5:19 PM

I am having problems trying to get MonoGame setup on my Mac. I got the latest source yesterday from Github, and have made sure that MonoTouch on my Mac as well as XCode are both up to date. 

Here are the steps I'm taking:

  • In Mono Develop I created a new solution with a project type of MonoTouch > Universal > Empty Project
  • I add in the existing projects Lidgren.Network.iOS and MonoGame.Framework.iOS

When I build I get an error in ContentTypeReaderManager.cs:
"The type or namespace name 'EffectMaterialReader' could not be found. Are you missing a using directive or an assembly reference?"

I know what this error means, but I'm not sure where this type should be defined. It's worth noting I had similar unknown types in the Guide.cs before I updated my XCode and device libraries to the latest iOS release, so I'm guessing this is somehow related to new iOS releases - but I'm not sure what to do. Do I need to target a specific version or something similar perhaps?

Thanks for your help!

Coordinator
Nov 16, 2012 at 5:39 PM

Hi Smartyp,

  The current develop3d branch has not updated the MonoTouch project. In the ContentReader subdir you should see EffectMaterialReader.cs, add it to the project. They may be other files that work under Windows 8, but just haven't been updated on the iOS side yet.

 

D.

Nov 17, 2012 at 3:05 AM

Thanks so much for your help!

For anyone else who may run into this, you'll also need to add EffectMaterial and ExternalReferenceReader to the project - just search the Monogame framework folder and you'll find them.