ld:未找到 AudioUnit 框架,ios9

ld: framework not found AudioUnit,ios9

我正在尝试在 OSX El Capitan 上使用 XCode 7.2.1 编译我的 iOS 项目。 我有一个 XCode 项目,它使用 libVLC。 XCode 项目由 JUCE 创建。我已经从 here 下载了一个 "VLC for iOS" 每晚构建,并将 MobileVLCKit.framework 添加到 linked 框架。

为了完整起见,我已将此框架添加到 link(按此顺序):

XCode link 用户抱怨缺少框架,该框架已包含在内:

ld: framework not found AudioUnit

clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是我的XCode电话:

Ld build/Debug/Video.app/Video normal i386 cd /Users/christoph/Desktop/Video/Builds/iOS export IPHONEOS_DEPLOYMENT_TARGET=9.2 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/christoph/Desktop/Video/Builds/iOS/build/Debug -F/Users/christoph/Desktop/Video/Builds/iOS/build/Debug -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/PrivateFrameworks -F/Users/christoph/Downloads -filelist /Users/christoph/Library/Developer/Xcode/DerivedData/Video-dmlikbmjwevxfmgmwzysjxijcuhs/Build/Intermediates/Video.build/Debug-iphonesimulator/Video.build/Objects-normal/i386/Video.LinkFileList -mios-simulator-version-min=9.2 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -framework AudioUnit -framework AVFoundation /Users/christoph/Downloads/MobileVLCKit-binary/MobileVLCKit.framework/MobileVLCKit -Xlinker -dependency_info -Xlinker /Users/christoph/Library/Developer/Xcode/DerivedData/Video-dmlikbmjwevxfmgmwzysjxijcuhs/Build/Intermediates/Video.build/Debug-iphonesimulator/Video.build/Objects-normal/i386/Video_dependency_info.dat -o /Users/christoph/Desktop/Video/Builds/iOS/build/Debug/Video.app/Video


我不明白的是..我在 "Build Phases" -> "Link Binaries with libraries"

下添加了框架 "AudioUnit.framwork"

目标是iOS。

如果有帮助就更好了!

添加

  • AudioToolbox 框架#import <AudioToolbox/AudioToolbox.h>

  • CoreAudio 框架。 #import <CoreAudio/CoreAudioTypes.h>

并删除 AudioUnit.framework 并尝试

您的项目需要 CFNetworkSystemConfigurationMobileCoreServiceslibz.tbd, libxml2, Core Text

CT  - > CoreText
CG  - > Core graphics
CM  - > Core Motion
CV  - > Core Video
VT  - > Video ToolBox
VD  - > Acclerate Framework
OBJC_CLASS_$_CAEAGLLayer     - > OpenGL and QuartzCore

请删除 AudioUnit.framwork 并清理它和 运行。