Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to solve this the crash when running after updating to swift 3?

Tags:

xcode

ios

swift

I just updated to Xcode 8 (swift 3). Converted code, etc. No errors. A few build warnings...nothing that should be an issue.

When I run, with my IPHone connected, it crashed with a Thread 1: signal SIGABRT . It has hardly anything in the trace back other than

0_abort_with_payload
5 _dyld_start

and the console error is

dyld: could not load inserted library '/Developer/usr/lib/libBacktraceRecording.dylib' because no suitable image found.  Did find:


    /Developer/usr/lib/libBacktraceRecording.dylib: code signature invalid for '/Developer/usr/lib/libBacktraceRecording.dylib'
like image 802
harry lakins Avatar asked Sep 17 '16 11:09

harry lakins


3 Answers

I had the same error since upgrading to xcode 8 (swift 3). The fix, for me, was to add an entry in info.plist

To add the permission information for the microphone:

  1. Open info.plist
  2. Add a new key called "Privacy - Microphone Usage Description"
  3. Enter a string that describes why the app need microphone access
like image 150
Doug Amos Avatar answered Nov 18 '22 14:11

Doug Amos


Just restart your iPhone device.

like image 30
Dmitry Coolerov Avatar answered Nov 18 '22 13:11

Dmitry Coolerov


It mainly crash because you have to write some privacy thing in info.plist if you are using hardwares like camera, gallery etc. Check console for details and add everything you are using in info.plist of your app.

like image 2
Mukul_3062 Avatar answered Nov 18 '22 13:11

Mukul_3062