iphone - App working when debugging but not in ad hoc distrubtion -


i have strange bug occurring. i'm monitoring sound levels using avaudiorecorder , calling action when sound peaks on level. works on simulator using ios 6 , on device connected xcode using ios 7.

when distribute app via testflight audio peak method never triggers. when distribute via ad-hoc , install via itunes have same problem.

why work on device connected xcode not through ad-hoc build?

edit:

i've did more testing , problem related microphone. metering enabled app isn't getting levels it. metering working when i'm debugging not ad-hoc.

why work on device connected xcode not through ad-hoc build?

sounds you've failed include microphone among "required device capabilities" in info.plist:

microphone

include key if app uses built-in microphone or supports accessories provide microphone.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -