Posts

Post not yet marked as solved
1 Replies
3.1k Views
Problem: The microphone works on my app when it runs in the simulator but doesn't work when I run on a device (iphone or ipad). (Xcode 10.2.1)Background: I made an audio processing app that takes input from the device's microphone. It worked fine in the simulator and when I loaded it to the device (with the free developer account under my personal apple ID), I could get it to work on my device. The free time period expired so I finally purchased an actual paid developer account. Now, the app works fine on the simulator but I can't get the microphone input to work on the physical iphone/ipad. To isolate the problem I made a very simple, single view app that only shows the current audio level from the microphone... again, it works just fine on the simulator but shows no microphone input on the physical device. It generates no errors or warnings. I also have the correct NSMicrophoneUsageDescription in the Info.plist and it correctly asks for mic permissions when I start up, so I don't think that's the issue. I also do the AVCaptureDevice.authorizationStatus check. The only thing I can think is something is wrong with the profile or something with how my profiles/certs are setup, or entitlements???Anyone else have this issue or know what could be the problem??? Frustrating that it works fine on the simulator but not the device!
Posted Last updated
.