Error reading resource file '...' CS1566

After upgrading to Xamarin Studio 4.0 and Xcode 5, I'm starting to have problems with .nib files in library projects.
I have a library project with some .nib files that I want to share between other projects.
That works fine until I edit the .nib files in Xcode. After that, I receive the following error during compilation of the library project:

Error CS1566: Error reading resource file `/Projects/MyProject/Libraries/MyProject.UI.iOS/obj/Debug/resources/FacebookCheckinController.nib' (CS1566) (MyProject.UI.iOS)

I've tried the following:

  • Place the .nib in subfolder (/ViewControllers) of my library project. Fails!
  • Place the .nib in root of my library project. Fails!
  • Place the .nib in one of my App-projects. Succeeds!

The FacebookCheckinCointroller.nib does exist at the above path.
However, it seems different from the .nib files that I haven't edited.
This one seems to be a package containing two .nib files: objects.nib and runtime.nib

Does anyone have a clue about this?

Regards,
Nill

Posts

  • mhutchmhutch USMember, Xamarin Team Xamurai

    You should have xib files in your project, and they will be compiled to nib files. Could you gist the full build output?

Sign In or Register to comment.