0
将应用程序提交至应用商店时,验证失败,并显示以下消息:“UIBackgroundModes键包含无效值:”。我不想在后台运行任何东西。我正在使用AudioSoundServices在应用内播放非常短的音频文件。我甚至从info.plist中删除了密钥无济于事。由于UIBackgroundModes关键问题,验证失败
典型的编码如下所示:
NSString *soundFileX = [[NSBundle mainBundle] pathForResource:@"sample" ofType:@"wav"];
AudioServicesCreateSystemSoundID((__bridge CFURLRef) [NSURL fileURLWithPath:soundFileX], &soundIDX);
AudioServicesPlaySystemSound(soundIDX);
我缺少什么?
感谢您的回复。我有一个运行在后台模式下的计时器。我将info.plist文件键设置为不允许后台运行。 –
你是如何获得计时器在后台运行的?而作为info.plist键?我说得对,你有一种背景模式? – matt