2016-09-17 66 views
23

Obj C項目;只是更新到Xcode 8和iOS/10。應用程序似乎是做工精細,但是,會有警告 -XCODE 8升級後的AVFoundation導入警告

「缺少子模塊‘AVFoundation.AVSpeechSynthesis’」 「缺少子模塊‘AVFoundation.AVAudioSession’」

出現這些消息對AVAudioSession &的#進口語句AVSpeechSynthesis。

有誰知道這是怎麼回事?

TIA

回答

45

我不知道這是爲什麼現在警告,但刪除AVAudioSessionAVSpeechSynthesis進口使它消失。所有你需要的是傘頭:

#import <AVFoundation/AVFoundation.h> 
// delete us 
//#import <AVFoundation/AVSpeechSynthesis.h> 
//#import <AVFoundation/AVAudioSession.h> 
+0

有沒有想過要嘗試它,但它做到了。謝謝 – RegularExpression