3llomi / iRecordView

A Simple Audio Recorder View with "hold to Record Button" and "Swipe to Cancel " Like WhatsApp
MIT License
52 stars 23 forks source link

iRecordView not working when app in release mode #17

Open ArjunBhilare opened 2 years ago

ArjunBhilare commented 2 years ago

I'm developing a messenger app in which I'm using https://github.com/3llomi/iRecordView library to record voice messages. Everything works fine in debug mode. But when I release the app to App Store and later use the app after downloading from App Store it does not work.

Expected behaviour is that on pressing the record button it makes sound and starts recording as shown in the demo https://github.com/3llomi/iRecordView

But in release mode (App downloaded from App Store) when I press the button nothing happens. There are no crash reports on App Store Connect. Could someone please help me on how could I get device logs or what the problem could be?

From what I could guess is that RecordViewDelegate methods are not being called

self.recordView.delegate = self is not working I guess. Any suggestions how this could be resolved?

KMSoft2013 commented 2 years ago

@ArjunBhilare I found onStart delegate is not getting called. Did you find any solution for this?

ariefnurputranto commented 2 years ago

hi @KMSoft2013 , @ArjunBhilare , @3llomi

The rootcouse in xcode 13 is executed in the code below

file RecordView.swift

audioPlayer.didFinishPlaying = { [weak self] _ in
               self?.delegate?.onStart()
 }

self?.delegate?.onStart() never called from audioPlayer.didFinishPlaying

KMSoft2013 commented 2 years ago

@ariefnurputranto Thanks for the help. And yes I figure out that. I simply remove this from the cocoa pod and added it directly as code with the sound file. And it worked without any problem.

ariefnurputranto commented 2 years ago

@KMSoft2013 , like i do. while waiting to be fixed and released on cocoapods

IosDev7070 commented 2 years ago

Hi @KMSoft2013 @3llomi @ArjunBhilare, I am also getting this issue ... do you guys find any solution ?

devkmsoft commented 2 years ago

simply remove this from the cocoa pod and added it directly as code with the sound file. And it worked without any problem.

devkmsoft commented 2 years ago

How I solved that @IosDev7070

IosDev7070 commented 2 years ago

do I need to remove the iRecordView pod from my project? @devkmsoft

devkmsoft commented 2 years ago

yes

IosDev7070 commented 2 years ago

I do the same @devkmsoft but it doesn't work for me

IosDev7070 commented 2 years ago

recordview gets open , and recording timing also start but it does not record anything ..