1

我正在尝试在 OSX El Capitan 上使用 XCode 7.2.1 编译我的 iOS 项目。我有一个使用 libVLC 的 XCode 项目。XCode 项目由 JUCE 创建。我已经从这里下载了一个“VLC for iOS”夜间版本,并将 MobileVLCKit.framework 添加到链接的框架中。

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

  • MobileVLCKit.framework
  • AudioUnit.framework
  • AVFoundation.framework

XCode 链接器抱怨缺少框架,其中包括:

ld: 找不到框架 AudioUnit

clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

这是我的 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/开发者/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/用户/christoph/Desktop/Video/Builds/iOS/build/Debug -F/Users/christoph/Desktop/Video/Builds/iOS/build/Debug -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator。平台/开发者/SDKs/iPhoneSimulator9.2。sdk/系统/库/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/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/Videobuild/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/Video2 -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/视频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/视频


我不明白的是..我在“构建阶段”->“将二进制文件与库链接”下添加了框架“AudioUnit.framwork”

目标是iOS。

一些帮助会非常好!

4

2 回答 2

1

添加

  • 音频工具箱框架#import <AudioToolbox/AudioToolbox.h>

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

并删除AudioUnit.framework并尝试

您的项目需要CFNetworkSystemConfigurationMobileCoreServiceslibz.tbdlibxml2Core Text

替代文字

CT  - > CoreText
CG  - > Core graphics
CM  - > Core Motion
CV  - > Core Video
VT  - > Video ToolBox
VD  - > Acclerate Framework
OBJC_CLASS_$_CAEAGLLayer     - > OpenGL and QuartzCore
于 2016-03-19T08:42:16.273 回答
1

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

于 2017-01-20T10:45:40.493 回答