I am trying to build a native iOS project after upgrading to the latest Xcode 15 and macOS v14 (Sonoma). Earlier it was working fine in Xcode 14.
While Building the project, I am getting these errors:
Firebase - DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
FirebaseAnalytics - DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
GoogleMLKit - DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
How can I fix it?
I tried a few options on my own and will list those below.
update the build settings in your Xcode project to use TOOLCHAIN_DIR instead of DT_TOOLCHAIN_DIR.
Open Your Xcode Project:
Open your Xcode project that is experiencing the build errors.Navigate to Build Settings:
Navigate to the project or target's Build Settings.Find LIBRARY_SEARCH_PATHS:
Locate the LIBRARY_SEARCH_PATHS build setting.Update DT_TOOLCHAIN_DIR:
If you find any references to DT_TOOLCHAIN_DIR, update them to use TOOLCHAIN_DIR.Replace DT_TOOLCHAIN_DIR with TOOLCHAIN_DIR:
Replace DT_TOOLCHAIN_DIR with TOOLCHAIN_DIR in the build settings.Save and Rebuild:
Save your changes and attempt to rebuild your project.
POD Update
Clean Build and rebuild