Completely deleting a project from Xcode

I have to say that I consider the whole process of developing with Xcode deeply annoying. I recently had a problem where it claimed that I needed to set a development team for signing even though I already had. After spending a lot of time deleting, recreating projects etc etc, I realized that clearly Xcode was keeping some information elsewhere that was causing the problem.

Turns out that it caches some information in:

~/Library/Developer/Xcode/DerivedData

Each project has a folder here. I deleted any folders that had the same name as my project and that fixed the problem. Ugh. And don’t get me started on bitcode…

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…