I\'m having this weird issue in which a newly created URLSessionUploadTask gets cancelled instantly. I\'m not sure if it\'s a bug with the current beta of Xcode
Are you by any chance using a third party library such as Ensighten? I had the exact same problem in XCode 8 beta (works fine in XCode 7) and all of my blocks with nil parameters were causing crashes. Turns out it was the library doing some encoding causing the issue.