OSX El Capitan で XCode 7.2.1 を使用して iOS プロジェクトをコンパイルしようとしています。libVLC を使用する XCode プロジェクトがあります。XCode プロジェクトは JUCE によって作成されました。ここから「VLC for iOS」ナイトリー ビルドを 1 つダウンロードし、リンクされたフレームワークに MobileVLCKit.framework を追加しました。
完全にするために、このフレームワークをリンクに追加しました (この順序で):
- MobileVLCKit.framework
- AudioUnit.framework
- AVFoundation.framework
XCode リンカーは、含まれていた欠落しているフレームワークについて不平を言っています。
ld: フレームワークが見つかりません AudioUnit
clang: エラー: リンカー コマンドが終了コード 1 で失敗しました (呼び出しを確認するには -v を使用してください)
これは私のXCodeコールです:
Ld build/Debug/Video.app/Video 通常の 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/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です。
いくつかの助けはとてもいいでしょう!