title: My App is crashing with reason Crashed: com.apple.main-thread EXC_BREAKPOINT I am using below code , I am getting same crash log on Crashlytics
body: <pre><code>if let val = userDict[&quot;userType&quot;], let val = userDict[&quot;userID&quot;],let val = userDict[&quot;audioStatus&quot;],let val = userDict[&quot;ask&quot;] {
      if userDict[&quot;userType&quot;] as! String == &quot;Host&quot; {
                                               
          let userkey = snapshot.key as? String ?? &quot;&quot;
                              
          let keyExistsInHost = self.hostList[userkey] != nil // add new user to speaker and update existing speaker
                              
          if keyExistsInHost {
              userDict[&quot;isHighlighted&quot;] = &quot;No&quot; as? AnyObject
  
              self.hostList.updateValue(userDict, forKey: userkey)
              DispatchQueue.main.async { [weak self] in
                  guard let self = self else { return }
                  let index = self.hostListUIArray.firstIndex(of: userkey) ?? 0
                  let isIndexValid = self.hostListUIArray.indices.contains(index)
                  if isIndexValid {
                      self.collectionView?.reloadItems(at: [IndexPath(row: index , section: 0)])// crashing at this line
                  }
              }                          
          }
  </code></pre>