0

I am trying to implement a chat following https://github.com/rlingineni/Xamarin.Forms-ChatMessenger this guide. Been copy/pastying almost all of it but when I run my version I get this error below when I try to debug it as IOS:

Foundation.MonoTouchException has been thrown. Objective C exception thrown. Name: NSInternallconsistencyException Reason: Could not load NIB in Bundle "NSBundle Users/Carl/Library/Developer/CoreSimulator/Devices/-random number/data/Containers/Bundle/Application/-random number/Project.iOS.App(loaded) with name "JSQMessagesViewController.

Any clue what It might be? I would think it is something in my resourcesfile, that I am missing something but I have the "BubbleIncoming.imageset" file that the project I am following has in my resoucersfile.

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • Do toy have JSQMessagesViewController.nib? – Tinwor Feb 07 '16 at 13:35
  • I cannot find something called JSQMessagesViewController.nib in my project. And when I search for it in the guide i cannot find it either – Charlie Chap Feb 07 '16 at 13:37
  • Possible duplicate of [MonoTouch.Foundation.MonoTouchException has been thrown Objective-C exception thrown. Name: NSInternalInconsistencyException](http://stackoverflow.com/questions/27493641/monotouch-foundation-monotouchexception-has-been-thrown-objective-c-exception-th) – Tinwor Feb 07 '16 at 13:38
  • I see 3 nib files of them in the guide now. Where should I add it in my project? – Charlie Chap Feb 07 '16 at 13:42
  • It is not a duplicate, i do not know where to add these files. Difference. – Charlie Chap Feb 07 '16 at 13:43
  • Check the answer, that should work. If not, write another comment. – Tinwor Feb 07 '16 at 13:44
  • I dont know how to reach Could not load NIB in Bundle "NSBundle Users/Carl/Library/Developer/CoreSimulator/Devices/-random number/data/Containers/Bundle/Application/-random number/Project.iOS.App(loaded) with name "JSQMessagesViewController. – Charlie Chap Feb 07 '16 at 13:53
  • Do i find it in a xamarinmap or something? – Charlie Chap Feb 07 '16 at 13:53

1 Answers1

0

As noted in the Readme, it uses the JSQmessages Component from the Component Store. Double click on the Components node in your project, find the component, and add it to your project.

Jason
  • 86,222
  • 15
  • 131
  • 146