2011-09-16 99 views
1

我試圖做一個音板應用程序,我得到這個錯誤爲i386硬件架構未定義的符號:「_AudioServicesCreateSystemSoundID」

Undefined symbols for architecture i386: 
     "_AudioServicesCreateSystemSoundID", referenced from: 
      -[S0undFXViewController sound1] in S0undFXViewController.o 
      -[S0undFXViewController sound2] in S0undFXViewController.o 
      -[S0undFXViewController sound3] in S0undFXViewController.o 
      -[S0undFXViewController sound4] in S0undFXViewController.o 
      -[S0undFXViewController sound5] in S0undFXViewController.o 
      -[S0undFXViewController sound6] in S0undFXViewController.o 

我不得到它!!!!!!!

+0

多一點背景可以幫助我們瞭解您的情況。你想做什麼?你的代碼是什麼?你在用什麼庫? – 2011-09-16 23:46:41

回答

9

這種錯誤通常是由缺少的框架造成的。

您是否已將AudioServices框架添加到您的項目中?只導入頭文件是不夠的。

編輯

其實,如果您打開在Xcode模塊的支持,這是不夠的,只是@import框架。

相關問題