Crash on webview file upload

Hello,


We have an app using a WebView in Swift 3. We are also using Xcode 8.


We have a file upload field in the app that worked just fine in Xcode 7.3.1 and Swift 2.3. Now everytime you try to upload a picture, the newly compiled app crashes.


Has anyone else experienced this?


We get this error:

libsystem_kernel.dylib`__abort_with_payload:

0x180888d6c <+0>: movz x16, #0x209

0x180888d70 <+4>: svc #0x80

-> 0x180888d74 <+8>: b.lo 0x180888d8c ; <+32>

0x180888d78 <+12>: stp x29, x30, [sp, #-16]!

0x180888d7c <+16>: mov x29, sp

0x180888d80 <+20>: bl 0x18086d7b4 ; cerror_nocancel

0x180888d84 <+24>: mov sp, x29

0x180888d88 <+28>: ldp x29, x30, [sp], #16

0x180888d8c <+32>: ret


Thanks

Accepted Reply

After a little bit more research I realized that some permissions were now required : Privacy - Media Library Usage Description AND Privacy - Photo Library Usage Description. Thanks!

Replies

>We have an app using a WebView in Swift 3. We are also using Xcode 8.


In which case the new wkwebview may be your better friend.


https://developer.apple.com/reference/webkit/wkwebview

__abort_with_payload
means that some library code has gone out of its way to crash your app. If you run your app outside of Xcode, does it still crash? If so, does that generate a crash log? If so, take a look at the crash log to see if it contains any clues.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

After a little bit more research I realized that some permissions were now required : Privacy - Media Library Usage Description AND Privacy - Photo Library Usage Description. Thanks!