본문 바로가기
반응형

플러터46

Flutter Unknown upstream repository issue (solved) 문제 상황 (Problem) $ flutter doctor 를 실행했을 때 아래와 같은 워닝 문구가 나온다. [!] Flutter (Channel unknown, 3.7.0, on macOS 13.4.1 22F82 darwin-arm64, locale ko-KR) ! Flutter version 3.7.0 on channel unknown at /Users/sjh/development/flutter Currently on an unknown channel. Run `flutter channel` to switch to an official channel. If that doesn't fix the issue, reinstall Flutter by following instructions at https:.. 2023. 7. 26.
[Xcode] libarclite_iphonesimulator.a (Error solved) [Xcode] libarclite_iphonesimulator.a Error solved 문제 상황 (Problem) 아래의 에러 메시지가 발생함 File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/a rc/libarclite_iphonesimulator.a 해결 방법 (Way to solve) Podfile을 열어서 제일 아래 부분의 post_install을 아래와 같이 변경한다. post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_set.. 2023. 7. 25.
플러터에서 api 함수를 http로 요청하기 [flutter][OpenAPI] 플러터에서 api 함수를 http로 요청하기[flutter][OpenAPI] 서버와 통신이 필요한 앱을 개발하기 위해서는 http통신이 필수적이다.플러터에서 http통신을 통해 api 요청을 보내기 위해서는 아래 방법을 따르면 된다. 먼저 http 라이브러리를 연결한다. 라이브러리 버전은 각 상황에 맞게 사용하자.pubspec.yaml의 dependencies영역에 아래와 같이 추가한다.dependencies: http: ^0.13.5 그리고 api 요청을 보내는 코드 부분에서 아래와 같이 http 통신을 요청하면 된다.> 예시 코드final uri = Uri.parse("https://api.odcloud.kr/serviceList");var response = await http.get(uri); .. 2023. 2. 8.
SocketException: Connection failed (OS Error: Operation not permitted, errno = 1) [flutter][macOS] SocketException: Connection failed (OS Error: Operation not permitted, errno = 1)[flutter][macOS] 에러 내용애플 macOS에서 http통신 코드를 호출할 때, SocketException: Connection failed 에러가 나타날 때가 있다.에러 사유를 디버깅해보면 OS Error: Operation not permitted 라고 표시된다.이제 우리는 OS 에서의 권한적인 문제가 있나보구나 정도로 원인을 유추할 수 있다.  해결책아래와 같이 앱 프로젝트 내에서 권한을 추가한다.파일은 Runner/DebugProfile.entitlements 이다. 기존 코드는 server에 대해서만 true처리되어있을 수도 있는데 clie.. 2023. 2. 7.
반응형