XCode 15, iOS 17 and Cocoapods build failure

Error 'DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead

This is a known incompatibility from Cocoapods < 1.13.0 and XCode 15 (reference)

In order to fix this issue, please update your Cocoapods to v1.13.0 or higher

$ gem install cocoapods

After that, you should confirm that the installed version is now v1.13.0 or higher:

$ pod --version
1.13.0