2017-07-21 144 views
-2

但是在標題和視頻說明沒有得到當時在應用程序崩潰更新設置時,斯威夫特崩潰。Vimeo的視頻上傳視頻上傳到視頻居然被上傳服務器

這裏我附上截圖發生崩潰的地方。

enter image description here

+1

您!.need!.to!.rethink!.your!.use!.of!.optionals! https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html –

+0

好吧,@NicolasMiari,但在他們的官方庫發生這個問題,所以我是有點混淆:-( –

+0

喜@VivekGoswami我也遇到了這個問題,這是VimeoUpload-iOS中的錯誤,你必須使用舊的上傳器,請參考這個鏈接https://github.com/vimeo/VimeoUpload/issues/149 – Ashu

回答

1

崩潰發生,因爲無論uploadTicketvideourinil .You're使用武力展開,這將導致崩潰,如果你展開值爲nil。嘗試改爲

if let videoUri = self.uploadTicket?.video?.uri { 
    // put rest of the code here 
} 
+0

感謝您的回放,崩潰問題已解決,但上傳過程無止境。@mag_zbc –