아니...왜 갑자기 이런 애러가 나는지 모르겠다...
보니까 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 의 맨 아래에 보면 위의 코드 블럭이 있는데 그걸 위와 같이 변경해 주면 된다.
'FLUTTER' 카테고리의 다른 글
[FLUTTER]Unable to process request - PLA Update available 해결 방법 (0) | 2023.11.01 |
---|---|
[Flutter] Unable to boot simulator error (0) | 2023.10.28 |
FLUTTER 멀티모듈 생성 시 Task 'wrapper' not found in project 해결(gradle-wrapper.properties not found )(intellij) (0) | 2023.09.25 |
[Flutter] 앱 1개가 Google Play의 대상 API 수준 요구사항의 영향을 받습니다 (0) | 2023.08.24 |
FLUTTER 카카오톡 플친 열기 (0) | 2023.08.23 |