맥북 m2 에서 apk 빌드 시 아래와 같은 에러 문구 발견
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.
애플 보안 문제로 안 되는 것 같다.
- 시스템 설정 -> 개인정보 보호 및 보안
에서 스크롤 내리면 보이는 '보안' 메뉴에서 'App Store 및 확인된 개발자'을 선택한다. - 하단에 font-subset 이 차단 되어있는 걸 볼 수 있는 데,
Allow Anyway (허용) 버튼을 눌러 차단을 풀어준다.
다시 빌드하면 정상적으로 빌드가 되는 걸 확인 할 수 있다.
'⚠ ERROR' 카테고리의 다른 글
[Vitest] localstorage is not defined (0) | 2023.04.10 |
---|