1
conversation.insert(message, completionHandler: { (error: Error?) in
    print(error as Any)
})

Above code is used while creating a picture to be sent as a message in an iMessage app. "nil" is being printed in the log. Would that be a problem?

Because any further interaction with the app, crashes it. Not sure if these are related!

Bilal
  • 18,478
  • 8
  • 57
  • 72
Shyam
  • 561
  • 5
  • 22

1 Answers1

1

If error is nil there is no error at all, the operation succeeded.

The reason of the crash must be somewhere else.

vadian
  • 274,689
  • 30
  • 353
  • 361
  • thanks for clearing my doubts. I should go search elsewhere. Guess, it's AutoLayoutConstraints..!! – Shyam Jun 10 '17 at 06:48