build筑cordova3.4应用程序时,未定义的build筑i386符号

在构buildCordova应用程序时,我在Mac上遇到构build错误的未定义符号。 我正在使用cordova版本3.4和Xcode 5.0.2。

这里是我的项目的Xcode属性生成设置 – >体系结构的快照 在这里输入图像说明

Undefined symbols for architecture i386: "_AudioServicesAddSystemSoundCompletion", referenced from: _playBeep in CDVNotification.o "_AudioServicesCreateSystemSoundID", referenced from: _playBeep in CDVNotification.o "_AudioServicesDisposeSystemSoundID", referenced from: _soundCompletionCallback in CDVNotification.o "_AudioServicesPlaySystemSound", referenced from: -[CDVVibration vibrate:] in CDVVibration.o _playBeep in CDVNotification.o "_AudioServicesRemoveSystemSoundCompletion", referenced from: _soundCompletionCallback in CDVNotification.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) ** BUILD FAILED ** The following build commands failed: Ld build/emulator/barcodeScanner.app/barcodeScanner normal i386 (1 failure) Error: /Users/dipin/Projects/barcodeScanner/platforms/ios/cordova/build: Command failed with exit code 65 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:112:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:735:16) at Process.ChildProcess._handle.onexit (child_process.js:802:5) DIPINs-MacBook-Air:barcodeScanner dipinkumarkrishnan$ cordova -v 3.4.0-0.1.0 

请帮助我这个错误。 Android构build对同一个项目工作正常。

干杯!

您可能缺lessAudioToolbox.framework 。 将其添加到目标的构build阶段,然后重试。