-2

The video actually gets uploaded but in the settings where title and description of video do not get updated at that time where the app crashes.

Here i am attaching screenshot where crashes happening.

enter image description here

Vivek Goswami
  • 432
  • 3
  • 16
  • 1
    You!.need!.to!.rethink!.your!.use!.of!.optionals! https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html – Nicolas Miari Jul 21 '17 at 08:57
  • Okay, @NicolasMiari , but this issue occurring in their official repository so i was little bit confuse :-( – Vivek Goswami Jul 21 '17 at 10:29
  • Hi @VivekGoswami I also faced this issue and this is the bug in VimeoUpload-iOS, You have to use old uploader. Please refer this link. https://github.com/vimeo/VimeoUpload/issues/149 – Ashu Aug 23 '17 at 05:05

1 Answers1

1

Crash happens because either uploadTicket, video or uri is nil .You're using force unwrapping, and that will cause a crash if the value you're unwrapping is nil. Try instead

if let videoUri = self.uploadTicket?.video?.uri {
    // put rest of the code here
}
mag_zbc
  • 6,801
  • 14
  • 40
  • 62