아니...왜 갑자기 이런 애러가 나는지 모르겠다...

 

보니까 ios 17로 업그레이드 하고 xcode 15 beta버전들을 사용할때 나는 에러인것 같다..

 

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
    xcconfig_path = config.base_configuration_reference.real_path
    xcconfig = File.read(xcconfig_path)
    xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
    File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
    end
  end
end

 

위의 코드대로 했더니 다른 에러가 나왔다.

 

Could not build the precompiled application for the device. Error (Xcode): Assertion failed: (fixups().size() == 2), function initFixup, file Atom.cpp, line 2021.

위의 에러가 나왔는데 다행히 정말 천사가 존재했다.

 

해결법은

 

post_install do |installer|
  assertDeploymentTarget(installer)
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
    xcconfig_path = config.base_configuration_reference.real_path
    xcconfig = File.read(xcconfig_path)
    xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
    File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
    end
  end
end

ios/Podfile 의 맨 아래에 보면 위의 코드 블럭이 있는데 그걸 위와 같이 변경해 주면 된다.

+ Recent posts