我正在试验Cycling 74's Gen并尝试在Xcode 5.1.1中构建Audiobus iOS Project。该项目需要Audiobus SDK 1,我能够访问该版本,因为当前版本为2.1.3,因此可以检出早期版本。它还需要The Amazing Audio Engine。
我参与了项目说明中的步骤9'为设备构建Xcode项目',但在构建时收到了许多Mach-O链接器错误:
我读到这些错误几乎总是与项目中未包含的Frameworks(内置在iOS框架中)相关,因此我查看了项目导入并找到了几个对#import <AudioUnit/AudioUnit.h>
的引用。然后我添加了AudioUnit.framework
,当然,大多数错误消失了。
我留下了一个错误:
Ld /Users/davechambers/Library/Developer/Xcode/DerivedData/GenFilter-btaipzocrdohxhbhznstjchlytad/Build/Intermediates/GenFilter.build/Debug-iphoneos/GenFilter.build/Objects-normal/armv7/GenFilter normal armv7
cd /Users/davechambers/Desktop/Max6_Gen_Demo_Projects_iOS_and_VST/iOS/iOSGenFilter
export IPHONEOS_DEPLOYMENT_TARGET=6.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L/Users/davechambers/Library/Developer/Xcode/DerivedData/GenFilter-btaipzocrdohxhbhznstjchlytad/Build/Products/Debug-iphoneos -L/Users/davechambers/Desktop/Max6_Gen_Demo_Projects_iOS_and_VST/iOS/iOSGenFilter -F/Users/davechambers/Library/Developer/Xcode/DerivedData/GenFilter-btaipzocrdohxhbhznstjchlytad/Build/Products/Debug-iphoneos -filelist /Users/davechambers/Library/Developer/Xcode/DerivedData/GenFilter-btaipzocrdohxhbhznstjchlytad/Build/Intermediates/GenFilter.build/Debug-iphoneos/GenFilter.build/Objects-normal/armv7/GenFilter.LinkFileList -dead_strip -fobjc-link-runtime -stdlib=libc++ -miphoneos-version-min=6.1 -framework AudioUnit -framework CoreAudio -lTheAmazingAudioEngine -framework QuartzCore -framework Security -framework AudioToolbox -framework Accelerate -framework UIKit -framework Foundation -framework CoreGraphics -lAudiobus -Xlinker -dependency_info -Xlinker /Users/davechambers/Library/Developer/Xcode/DerivedData/GenFilter-btaipzocrdohxhbhznstjchlytad/Build/Intermediates/GenFilter.build/Debug-iphoneos/GenFilter.build/Objects-normal/armv7/GenFilter_dependency_info.dat -o /Users/davechambers/Library/Developer/Xcode/DerivedData/GenFilter-btaipzocrdohxhbhznstjchlytad/Build/Intermediates/GenFilter.build/Debug-iphoneos/GenFilter.build/Objects-normal/armv7/GenFilter
ld: framework not found AudioUnit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是我的问题,我无法摆脱这最后的错误。与以下SO答案中的建议相反,删除AudioUnit.framework并添加CoreAudio.framework并没有帮助,但却带回了上面显示的所有Mach-O链接器错误:
以下帖子对我没有帮助:
ld-framework-not-found-audiounit
clang-error-linker-command-failed-with-exit-code-1-library-not-found
我已将项目上传到Google Docs。如果有人有时间看看我出错的地方,我会很感激。
答案 0 :(得分:0)
快速回答: 删除所有框架并注释掉对所述框架的引用,然后添加将依赖的每个框架。我按照这一部分做了一个构建,以确保我仍然没有错误,尽管我不得不使用AudioToolbox代替AudioUnit。最后,添加您的依赖框架并构建。