Building the VPX Example and Installing Xcode command line tools

I have been trying to build the VPX Example and the webm part of the build was failing with a messy error message:

2022-05-10 16:43:50.292 xcodebuild[6851:523507] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-05-10 16:43:50.293 xcodebuild[6851:523507] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
iosbuild.sh failed because: build exited with error (2)

Turned out to be that the Xcode command line tools had not been installed. The install can be kicked off by typing this at a Terminal command line:

xcode-select --install

However, that didn’t fix it. Based on this page, I then tried:

softwareupdate --list
softwareupdate -i "Command Line Tools for Xcode-13.3"

By running the webm iosbuild.sh with the –show-build-output I was able to see that the real error was that it was using old libraries. Adding “-stdlib=libc++” to the CXXFLAGS:

CXXFLAGS="-arch ${ARCH2:-${ARCH}} -isysroot ${SDKROOT} ${OPT_FLAGS}
            -miphoneos-version-min=6.0 -stdlib=libc++"

allowed the webm build to complete. Unfortunately, the VPX Example project still didn’t build in Xcode…

%d bloggers like this: