I'm trying to compile my iOS project with XCode 7.2.1 on OSX El Capitan. I have an XCode project, that uses libVLC. The XCode project was created by JUCE. I have downloaded one "VLC for iOS" nightly build from here and have added MobileVLCKit.framework to the linked Frameworks.
To be complete I've added this frameworks to link (in this order):
The XCode linker complains about a missing framework, that was included:
ld: framework not found AudioUnit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is my XCode Call:
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
What I don't understand is.. I added the Framework "AudioUnit.framwork" under "Build Phases" -> "Link Binaries with libraries"
The target is iOS.
Some help would be very nice!
add
AudioToolbox framework #import <AudioToolbox/AudioToolbox.h>
CoreAudio framework. #import <CoreAudio/CoreAudioTypes.h>
And also remove AudioUnit.framework
and try
your project requires CFNetwork, SystemConfiguration, MobileCoreServices,libz.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