-
[Flutter] Could not build module 'WebKit' 해결방법Flutter 2023. 9. 30. 03:09
나처럼 InAppWebView를 사용하는 사람들을 위해 적어본다!
이전 게시글을 따라서 문제들을 해결하고 나서도, 위와 같은 문제가 생긴다면 아래 명령어를 Podfile에 추가해주면 된다!
post_integrate do |installer| compiler_flags_key = 'COMPILER_FLAGS' project_path = 'Pods/Pods.xcodeproj' project = Xcodeproj::Project.open(project_path) project.targets.each do |target| target.build_phases.each do |build_phase| if build_phase.is_a?(Xcodeproj::Project::Object::PBXSourcesBuildPhase) build_phase.files.each do |file| if !file.settings.nil? && file.settings.key?(compiler_flags_key) compiler_flags = file.settings[compiler_flags_key] file.settings[compiler_flags_key] = compiler_flags.gsub(/-DOS_OBJECT_USE_OBJC=0\s*/, '') end end end end end project.save() end
이게 되겠어? 하고 했는데, 진짜 됐다,,,! ㅎㅎ
'Flutter' 카테고리의 다른 글
[Flutter] DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead 해결방법 (Xcode 15 Firebase SDK 적용) (0) 2023.09.30 [FLUTTER] 상태 관리 패키지 (Provider) 사용법 정리 (0) 2023.04.09 [FLUTTER] 상태 관리 패키지 (Provider) 적용하기 (0) 2023.04.09 [FLUTTER] 상태 관리 패키지 (Provider) 준비하기 (0) 2023.04.07 [FLUTTER] 리펙토리(Refactory) (0) 2023.04.07