 <p>I was going through a similar issue and none of the above answers helped. My issue was:</p> <p>-> media message added (worked fine) -> text message added just after media message (app crashed)</p> <p>I found that my problem lied in this piece of code in my cell for item at indexPath</p> <pre><code> let message = messages[(indexPath as NSIndexPath).item] if message.senderId == senderId { cell.textView!.textColor = UIColor.white } else { cell.textView!.textColor = UIColor.black } </code></pre> <p>I just commented out this code and everything works fine now.</p>