调试时出现奇怪的错误
我收到此错误
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
我尝试了以下
清理项目并重建 确保 main 的 @implementation
不重复 添加了audiounit frmaework
我使用xcode 3.2.5,知道如何解决
我在这个苹果示例中添加了所有类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];
I got this error
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
I tried the following
clean the project and rebuild
make sure that @implementation
of main doesn't be repeated
added the audiounit frmaework
I use xcode 3.2.5, any idea how to solve that
I added all the classes in this apple example https://developer.apple.com/library/ios/#samplecode/SpeakHere/Introduction/Intro.html
to my project except the delegate and the main then in the min view I added the following code to call the SpeakHereViewController
SpeakHereViewController* Edit = [[SpeakHereViewController alloc] initWithNibName:@"SpeakHereViewController" bundle:nil];
[self.navigationController pushViewController:Edit animated:YES];
[Edit release];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了添加
CoreAudio.framework
和AudioToolbox.framework
之外,还可以尝试删除
AudioUnit
。这为我解决了这个问题。
In addition to adding
CoreAudio.framework
andAudioToolbox.framework
,Try also removing
AudioUnit
.This fixed it for me.