iPhone app crashing in TestFlight, working fine in simulator and iPhone Devices

We are facing very strange issue in our app.

Issue:

  1. App is working fine in simulator and iPhones.
  2. Only crashing in TestFlight version.

Here are code snippets which are crashing app:

Creating custom uitableviewcell for the UITableView:

Created cell UI in storyboard

UITableViewCell class code

import UIKit

    class SocialMediaNewCell: UITableViewCell {

    @IBOutlet weak var imgView: UIImageView!
    @IBOutlet weak var lblText: UILabel!
    
  
    @IBOutlet weak var profileImageView: UIImageView!
    @IBOutlet weak var userNameLbl: UILabel!
    @IBOutlet weak var postTimeLbl: UILabel!
    @IBOutlet weak var userImageView: UIImageView!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}

We are using cell object in cellForRowAt method in class UIViewController.

Here is the cellForRowAt method body.

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    let cell = tableView.dequeueReusableCell(withIdentifier: "SocialMediaNewCell") as! SocialMediaNewCell
    cell.userNameLbl.text = "XYZ"
    cell.userImageView.image = UIImage(named: "Bitmap_4")
    return cell
}

Please find the report of crash received from firebase crashalytics: firebase crash screnshot

Please check and let us know of anybody is facing the same type of issue.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum