【Flutter】Xcode15 bug,某些机型闪退

110 阅读1分钟

在某些Xcode15的机型中会出现APP闪退的问题

解决方法:找到iOS文件下面的Podfile文件,添加下面代码

      xcconfig = File.read(xcconfig_path)
      xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
      File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }

image.png