调试时出现奇怪的错误

发布于 2025-01-07 00:55:35 字数 1696 浏览 1 评论 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

我尝试了以下

清理项目并重建 确保 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吃颗糖壮壮胆 2025-01-14 00:55:35

除了添加 CoreAudio.frameworkAudioToolbox.framework 之外,
还可以尝试删除 AudioUnit
这为我解决了这个问题。

In addition to adding CoreAudio.framework and AudioToolbox.framework,
Try also removing AudioUnit.
This fixed it for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文