반응형
mac에서 flutter build 시 다음과 같은 문제로 빌드가 안될 경우가 있다.
Target aot_android_asset_bundle failed: IconTreeShakerException: Font subsetting failed with exit code -9.
To disable icon tree shaking, pass --no-tree-shake-icons to the requested flutter build command
FAILURE: Build failed with an exception.
이 문제를 해결하기 위해서는 맥 설정에서 '개인정보 보호 및 보안' 으로 들어가면 font-subset이 차단되어 있는 것을 확인할 수 있다.
차단된 font-subset을 허용으로 설정을 바꿔주면 문제를 해결할 수 있다.
다시 터미널로 돌아와 flutter build을 실행하면 정상적으로 동작하는 것을 확인할 수 있다.
728x90
반응형