Hyebin‘s blog
article thumbnail

[ 문제 발생 ]

 

Flutter 를 디버깅모드로 실행하는 도중에 

flutter Permission denied
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro. 

 

라는 에러가 계속 발생했다..

권한의 문제인 것 같아서 sudo flutter run을 해줬더니 실행됐음.!

근데 나는 vs code 에서 멋진 기능들을 사용하면서 ,, 시뮬레이터를 돌리면서 실행시키고 싶었기 항상 sudo로 할수 없었고,, 꼭  해결해야 했음!! 

 

[ 에러 내용 ]

Permission denied
flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart to execute .pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/vector_math_64.dart

에러 내용을 보니까 vector_math 에 권한이 없는 것 같았다!

 

 

https://stackoverflow.com/questions/75921352/flutter-run-did-not-able-able-execute-a-lot-of-files-and-keep-asking-for-permiss

 

Flutter run did not able able execute a lot of files and keep asking for permission

I upgraded to flutter 3.7.9. There were some issues related to file permission and I resolved them. Now I am able to create an app using both in command line flutter create aap-name and also by goi...

stackoverflow.com

사용자(루트가 아님)로 로그인했기 때문에 파일을 실행할 수 없다는 스택플로우

그저 갓..

 

[ 해결 방법 ]

 

1. 터미널 열기

2. 루트 사용자로 로그인

$ su -

3. 문제의 폴더로 이동

$ .pub-cache/hosted

4. 모든 하위 폴더 및 파일의 소유권을 현재 사용자로 변경

$ sudo chown yourusername: pub.dev/*

 

삽질 좀 했지만 ..

이쁘게 켜진 시뮬레이터를 보니 .. 빨리 개발하고 싶어진다

'Front-end' 카테고리의 다른 글

모노레포 환경에서 코딩 컨벤션 & 공통 로직 공유  (0) 2023.05.08
모노레포 환경 구축하기 (with yarn berry)  (0) 2023.05.05
bootstrap grid  (0) 2022.03.14
Concurrently?  (0) 2022.01.29
Proxy Server?  (0) 2022.01.29
profile

Hyebin‘s blog

@hyebin Lee

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!

검색 태그