Showing Recent Messages DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCH

17103204:

After recently updating Xcode 15, I encountered some error messages.

Finally, add the following code to the podfile, and then re-pod install, it can run normally.

These errors may be caused by changes in Xcode or incompatibilities in the project's dependent libraries. When facing these problems, a common solution is to adjust the version of the dependent library or add specific configurations by editing the project's Podfile file so that the project can run normally under the new Xcode version.

Podfile is the configuration file of CocoaPods, which specifies the third-party libraries that the project depends on and their corresponding versions. When problems occur after updating the Xcode version, we can try to add some code in the Podfile to solve these problems. For example, you can try updating the versions of dependent libraries to ensure they are compatible with Xcode 15. This can be done by modifying the version number of the relevant dependent library in the Podfile or using the tilde (~>) to specify the lowest acceptable version.

In addition, you can also solve the problem by adding some specific configurations. For example, you may need to add some compilation options or set other environment variables to make the project compile and run properly under the new Xcode version. These configurations can be adjusted based on specific problems and project needs. After solving the problem, we need to run the pod install command in the terminal to reinstall the dependent libraries according to the updated Podfile configuration.

post_install do |installer|
      installer.pods_project.targets.each do |target|

Guess you like

Origin blog.csdn.net/github_29300109/article/details/132162478