首页 > 其他分享 >Xcode 15 and iOS 17 - Error: DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use T

Xcode 15 and iOS 17 - Error: DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use T

时间:2023-11-26 19:45:33浏览次数:39  
标签:PATHS end target xcconfig path TOOLCHAIN DIR

热烈欢迎,请直接点击!!!

进入博主App Store主页,下载使用各个作品!!!

注:博主将坚持每月上线一个新app!!

Podfile文件添加如下内容后,重新pod install:

post_install do |installer|
  # fix xcode 15 DT_TOOLCHAIN_DIR - remove after fix oficially - https://github.com/CocoaPods/CocoaPods/issues/12065
  installer.aggregate_targets.each do |target|
      target.xcconfigs.each do |variant, xcconfig|
      xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
      IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
      end
  end

  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
          xcconfig_path = config.base_configuration_reference.real_path
          IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
      end
    end
  end
end

 

标签:PATHS,end,target,xcconfig,path,TOOLCHAIN,DIR
From: https://www.cnblogs.com/strengthen/p/17857771.html

相关文章

  • linux 中 mkdir -p选项
     mkdir-p选项保证在创建目录的时没有上一级目录情况下自动创建001、不加-p选项(base)[root@pc1test]#ls(base)[root@pc1test]#mkdirtest01/test02##不加-p,创建两级目录,失败mkdir:cannotcreatedirectory‘test01/test02’:Nosuchfileordirector......
  • [Docker] Mac M2 – no such file or directory: /var/lib/docker/volumes ,找不到var/
    MacM2ProDocker24.0.6$dockervolumeinspect14dfdb65fb7075d91b2004c979a3591df54bcc1303ff3ca96a3536f4761a19cc[{"CreatedAt":"2023-11-21T12:52:27Z","Driver":"local","Labels......
  • web目录扫描工具——dirpro
    工具可自行在GitHub上下载:https://github.com/coleak2021/dirprodirpro是一个绿色版工具,无需安装。下载完成后直接解压出来,通过Python运行即可。示例:利用dirpro工具扫描百度网址目录cdD:\*\dirpro-mainpythondirpro.py-uhttps://www.baidu.com/ 参数解析:-u......
  • fsm.h:24:37: fatal error: glib.h: No such file or directory
     001、make编译报错如下:fsm.h:24:37:fatalerror:glib.h:Nosuchfileordirectory 002、查找该文件(base)[[email protected]]#find/-name"glib.h"##存在该文件,但是有可能是找不到 003、查找相关的系统安装包(base)[root@pc1exonerate-2.......
  • pip生成与安装项目依赖包---提示:No such file or directory: 'requirement.txt'
    错误的原因:安装项目依赖包的文件命令: pipinstall-rrequirement.txt问题:ERROR:Couldnotopenrequirementsfile:[Errno2]Nosuchfileordirectory:'requirement.txt'解决:第一步,检查项目中是否存在文件“requirement.txt”,如果存在,则检查文件名与执行的文件名不一致......
  • Pages.Instance is null when installing in subdirectory(ScrewTurn Wiki)
     “/”应用程序中的服务器错误。Pages.Instanceisnull说明:执行当前Web请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息:System.InvalidOperationException:Pages.Instanceisnull源错误:执......
  • fatal error: lzma.h: No such file or directory
     001、make编译报错:fatalerror:lzma.h:Nosuchfileordirectory 002、查找相关包(base)[[email protected]]#yumsearch"liblzma"Loadedplugins:fastestmirror,langpacksLoadingmirrorspeedsfromcachedhostfile*base:mirrors.bfsu.edu.c......
  • fatal error: bzlib.h: No such file or directory
     001、make编译报错:fatalerror:bzlib.h:Nosuchfileordirectory 002、查找相关的安装包(base)[[email protected]]#yumsearchbzip2 003、安装相关包(base)[[email protected]]#yuminstallbzip2-devel*-y##安装相关包 0......
  • 容器中sh脚本明明存在,为何会报"no such file or directory"的错误?
    小伙伴碰到一起奇怪的事故,从gitlab上拉取的docker镜像项目,在本地开发机上进行dockerbuild后,启动容器会报错如下:exec/app/run.sh:nosuchfileordirectory /app/run.sh文件是ENTRYPOINT启动的,注释掉ENTRYPOINT,直接进入容器后可以看到/app/run.sh好好在那儿,文件的可执......
  • 在 WINDOWS 安装 ACTIVE DIRECTORY 用户和计算机管理单元 (ADUC)
     在WINDOWS安装ACTIVEDIRECTORY用户和计算机管理单元(ADUC)安装官方AD域管理工具(ADUsersandComputers)  一、在WindowsServer里安装AD域管理工具:    1.WindowsServer只需要在角色和功能里,安装Active Directory域服务(ADDS){ActiveDirectoryDomain......