커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
라이브러리 추가 이후 iOS 기기에서 빌드가 안 되는 문제가 발생합니다.
앱개발 종합반 - 플러터 v8
0주차
북마크
홍*철
댓글
7
추천
0
조회수
72
조회수
72
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.



provider 라이브러리 추가 이후에 iOS 기기에서 빌드가 되지 않는 문제가 생깁니다

Xcode14.3 에서 이슈가 있다고 해서 14.2 로 다운 그레이드 해봐도 안 되고

flutter upgrade 를 하면 아래 두 번째 사진 처럼 업그레이드가 안 되는 상황이 발생합니다.

스파르타 즉문즉답

IPHONEOS_DEPLOYMENT_TARGET 이것을 9.0 에서 변경 해 보아도 똑같은 상황이 발생합니다.

flutter doctor 로 확인하면 다음과 같이 나옵니다.

스파르타 즉문즉답

라이브러리 설치 하기 이전에는 작동이 잘 되었지만 라이브러리를 추가한 이후에 문제가 발생하는 것 같습니다.

혹시 해결 방법이 있다면 알려주셨으면 감사하겠습니다.



스파르타 즉문즉답



작성한 코드 및 에러 메세지


fatal: unterminated line in .git/packed-refs: ...

Launching lib/main.dart on iPhone 14 Pro Max in debug mode...

Xcode build done.                      14.7s

Failed to build iOS app

Error output from Xcode build:

  ** BUILD FAILED **

Xcode's output:

  Writing result bundle at path:

   /var/folders/9t/21y55twj0rx52zcqfp7jnhgw0000gn/T/flutter_tools.3nVNBH/flutter_ios_build_temp_dirunEW0v/temporary_xcresult_bundle

  fatal: unterminated line in .git/packed-refs: ...

  fatal: unterminated line in .git/packed-refs: ...

  Error: Cannot run with sound null safety, because the following dependencies

  don't support null safety:

   - package:provider

  For solutions, see https://dart.dev/go/unsound-null-safety

: Error: Superclass has no method named 'inheritFromElement'.

    return super.inheritFromElement(ancestor, aspect: aspect);

           ^^^^^^^^^^^^^^^^^^

: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.

- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../development/sdks/flutter/packages/flutter/lib/src/widgets/framework.dart').

  Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.

      ? context.inheritFromWidgetOfExactType(type) as InheritedProvider<T>

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

: Error: The method 'ancestorInheritedElementForWidgetOfExactType' isn't defined for the class 'BuildContext'.

- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../development/sdks/flutter/packages/flutter/lib/src/widgets/framework.dart').

  Try correcting the name to the name of an existing method, or defining a method named 'ancestorInheritedElementForWidgetOfExactType'.

      : context.ancestorInheritedElementForWidgetOfExactType(type)?.widget

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Failed to package /Users/hong/Desktop/FlutterExample/dangeun_clone 복사본.

  Command PhaseScriptExecution failed with a nonzero exit code

  note: Building targets in dependency order

  /Users/hong/Desktop/FlutterExample/dangeun_clone 복사본/ios/Runner.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'Runner' from project 'Runner')

  warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')

  warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')

  Result bundle written to path:

   /var/folders/9t/21y55twj0rx52zcqfp7jnhgw0000gn/T/flutter_tools.3nVNBH/flutter_ios_build_temp_dirunEW0v/temporary_xcresult_bundle

Could not build the application for the simulator.

Error launching application on iPhone 14 Pro Max.

Exited




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴