IOS App is crashing when i try to record audio from the microphone



  • Hello Everybody,

    I try to record audio from the iPhone mic with the QAudioRecorder and this working very well on the simulator, but when I debug with a real device, the app is crashing in the moment when the record() method of the audio recorder is getting called. What is also very strange, the device is never asked me for using the mic, it's also not listed under devices which have the permission to use the mic on my phone. The app is crashing with the following error:

    program received signal 6, thread:22741;00:0b00000000000000;01:0000000000000000;02:2894e12701000000;03:1d00000000000000;04:5894e12701000000;05:0000000000000000;06:0000000000000000;07:b00b000000000000;08:2000000000000000;09:0000000000000000;0a:0000000000000001;0b:3001001000100002;0c:0000000000000000;0d:7468652061707020;0e:7573657320746869;0f:7320646174612e00;10:0902000000000000;11:0000000000000000;12:0000000000000000;13:0000000000000000;14:5894e12701000000;15:1d00000000000000;16:2894e12701000000;17:0000000000000000;18:0b00000000000000;19:00b08bae01000000;1a:10ed106e01000000;1b:0400000000000000;1c:ffffffffffffffff;1d:20ec106e01000000;1e:9ca4f68701000000;1f:e0eb106e01000000;20:74ddf68701000000;21:00000040;metype:5;mecount:2;medata:10003;medata:6;memory:0x16e10ec20=30ec106e01000000c8a4f68701000000;memory:0x16e10ec30=70ec106e0100000028e31d8b01000000;
    program received signal 9, thread:22741;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:2894e12701000000;04:1d00000000000000;05:5894e12701000000;06:0000000000000000;07:b00b000000000000;08:2000000000000000;09:a04388ae01000000;0a:0000000000000001;0b:3001001000100002;0c:0000000000000000;0d:7468652061707020;0e:7573657320746869;0f:7320646174612e00;10:0802000000000000;11:0000000000000000;12:0000000000000000;13:0000000000000000;14:5894e12701000000;15:1d00000000000000;16:2894e12701000000;17:0000000000000000;18:0b00000000000000;19:00b08bae01000000;1a:10ed106e01000000;1b:0400000000000000;1c:ffffffffffffffff;1d:20ec106e01000000;1e:bca4f68701000000;1f:e0eb106e01000000;20:7cf8f68701000000;21:00000000;metype:5;mecount:2;medata:10003;medata:9;memory:0x16e10ec20=30ec106e01000000c8a4f68701000000;memory:0x16e10ec30=70ec106e0100000028e31d8b01000000;
    

    Has anyone maybe an idea? Would be great :) Thanks!



  • If I look into the Info.plist file in the XCode project there is no entry for using the mic.
    I thought QT is doing this automatically, but like it seems not. Great idea from that guy's that they overwrite the info.plist file every build which makes not possible to edit it manually.



  • Ok I was able to fix it by creating a custom Info.plist, adding the option to it and link it in the qmake file.

    QMAKE FILE:

    ...
    ios{
        QMAKE_INFO_PLIST = Info.plist
    }
    ...
    

    The Info.plist file is in the root of my project. I just copied the one which was created by QT Creater and added the option I need.

    You can find your Info.plist in the Xcode Project which is generated by the Qt Creator.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.