Closed fukemy closed 6 months ago
any solution????????
Same issue here
@CaptainJeff use my code to solve this:
+ (NSString *) getAudioOutput {
// return [AVAudioSession sharedInstance].currentRoute.outputs.count > 0 ? [AVAudioSession sharedInstance].currentRoute.outputs[0].portType : nil;
@try{
NSArray<AVAudioSessionPortDescription *>* outputs = [AVAudioSession sharedInstance].currentRoute.outputs;
if(outputs != nil && outputs.count > 0){
return outputs[0].portType;
}
return nil;
}@catch(NSException* anException) {
NSLog(@"getAudioOutput error :%@", [anException description]);
return nil;
}
}
We are getting same issue,
I got this same error in Expo, I am using eas to build the project, How to fix this in expo?
Bug report
[x] I've checked the example to reproduce the issue.
Reproduced on:
Description
Fatal Exception: NSRangeException *** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty array
Steps to Reproduce
answer the call then got this error
Versions
Logs