4 Replies
      Latest reply: Oct 27, 2016 11:28 AM by MrApp RSS
      MrApp Level 1 Level 1 (0 points)

        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

        • Re: Crash on webview file upload
          KMT Level 8 Level 8 (6,935 points)

               >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

            • Re: Crash on webview file upload
              MrApp Level 1 Level 1 (0 points)

              We have just tried with WkWebView and we get the same 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  

               

               

              Although, I can upload from Dropbox and OneDrive... bizzare.

            • Re: Crash on webview file upload
              eskimo Apple Staff Apple Staff (6,075 points)

              __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"