3.17.2版本好像是有问题,我记得当时需要处理点东西来着,然后xcode尽量不要用太高版本的,毕竟2dx好几年没维护了,苹果又是出了名的爱作死
把这个枚举注释掉,然后同级目录下/CDAudioManager.m中修改
-(BOOL) isOtherAudioPlaying {
return [[AVAudioSession sharedInstance] isOtherAudioPlaying];
}
-(BOOL) isDeviceMuted {
#if TARGET_IPHONE_SIMULATOR
//Calling audio route stuff on the simulator causes problems
return NO;
#else
CFStringRef newAudioRoute;
UInt32 propertySize = sizeof (CFStringRef);
if ([[AVAudioSession sharedInstance] isOtherAudioPlaying]) {
//Don't expect this to happen but playing safe otherwise a null in the CFStringCompare will cause a crash
return YES;
} else {
CFComparisonResult newDeviceIsMuted = CFStringCompare (
newAudioRoute,
(CFStringRef) @"",
0
);
return (newDeviceIsMuted == kCFCompareEqualTo);
}
#endif
}
然后xcode我用的12目前没问题



没有问题啊 可以正常发包的 你肯定是哪里自己有问题吧