cjwirth / RichEditorView

RichEditorView is a simple, modular, drop-in UIView subclass for Rich Text Editing.
BSD 3-Clause "New" or "Revised" License
1.89k stars 445 forks source link

Problem in manually integrating this library into xcode project #226

Closed AwaisFayyaz closed 4 years ago

AwaisFayyaz commented 4 years ago

Hi,

I am trying to manually integrate this library into my iOS swift Project. I followed steps that author told to follow In this issue.

I followed the steps to integrate the library. My project build successfully but when i try to set delegate, app crashes with message

Thread 1: EXC_BAD_ACCESS (code=2, address=0x1e96e8e60)

At this line

viewRichEditorMessage.delegate = self

viewRichEditorMessage is declared like this

@IBOutlet weak var viewRichEditorMessage: RichEditorView!

Any help would be much appreciated.

Thanks

AwaisFayyaz commented 4 years ago

Ok. i figured it out.

Library was not linked properly. please see this stackoverflow answer.

  1. Select project
  2. Go to 'General' Tab
  3. scroll down to 'embedded binaries' section. click on plus button, select RichEditorView.Framework
  4. similarly scrolldown to "Linked Frameworks and libraries" click on plus button, select RichEditorView.Framework

Build and run