我正在制作一个应用程序,一旦计时器达到一定限制就会振动。
但是,当调用
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
Xcode 出现两个错误:
Undefined symbols for architecture i386:
"_AudioServicesPlaySystemSound", referenced from:
-[drawGraph drawRect:] in drawGraph.o
ld: symbol(s) not found for architecture i386
和
clang: error: linker command failed with exit code 1 (use -v to see invocation)
关于是什么导致这些错误的任何想法?