Flutter iOS 17 does not run

신상훈
3 min readMay 17, 2024

--

ios 17 에서 flutter run 되지 않은 경우 아래 방법으로 디버깅 우회

You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you can change this through your Settings > Privacy & Security > Automation.
The Dart VM Service was not discovered after 60 seconds. This is taking much longer than expected...
Open the Xcode window the project is opened in to ensure the app is running. If the app is not running, try selecting "Product > Run" to fix the problem.
  1. Xcode에서 프로젝트 오픈
  2. product -> run 실행 한다 ( 재생 버튼 클릭 )

3. flutter 프로젝트 IDE 콘솔

4. “flutter attach” 입력

  • 타켓 디바이스 번호 입력 (Xcode로 실행 디바이스 선택)
  • 콘솔창에 출력된 첫번째 command 명령어를 복사한다.
  • 실행시마다 포트 번호가 변경됨.
  • flutter attach --app-id "com.cl.player.app.dev" --device-vmservice-port 54327

5. 복사한 명력어를 콘솔에 다시 입력 한다.

  • 타켓 디바이스 번호 입력 (Xcode로 실행 디바이스 선택)
  • 콘솔에 출력된 The Flutter DevTools debugger … 의 링크 클릭

6. flutter DevTool 웹 페이지

  • 상담 탭 메뉴의 debugger 클릭

--

--