0
我得到這個錯誤奇怪的錯誤,而調試
setenv IPHONEOS_DEPLOYMENT_TARGET 4.2
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -L/Users/paxeramed/Desktop/TestWhy/build/Debug-iphoneos -F/Users/paxeramed/Desktop/TestWhy/build/Debug-iphoneos -filelist /Users/paxeramed/Desktop/TestWhy/build/TestWhy.build/Debug-iphoneos/TestWhy.build/Objects-normal/armv7/TestWhy.LinkFileList -dead_strip -miphoneos-version-min=4.2 -framework Foundation -framework UIKit -framework CoreGraphics -framework AudioToolbox -framework AudioUnit -framework AVFoundation -framework OpenGLES -framework QuartzCore -o /Users/paxeramed/Desktop/TestWhy/build/Debug-iphoneos/TestWhy.app/TestWhy
ld: framework not found AudioUnit
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 failed with exit code 1
我嘗試以下
乾淨的項目和重建 確保主要@implementation
不重複 添加audiounit frmaework
我使用xcode 3.2.5,任何想法如何解決這個問題
我添加了所有的類我n這個蘋果例如https://developer.apple.com/library/ios/#samplecode/SpeakHere/Introduction/Intro.html ,除了委託和最小鑑於主然後我的項目,我添加以下代碼來調用SpeakHereViewController
SpeakHereViewController* Edit = [[SpeakHereViewController alloc] initWithNibName:@"SpeakHereViewController" bundle:nil];
[self.navigationController pushViewController:Edit animated:YES];
[Edit release];