티스토리

믹아의 개발일기
검색하기

블로그 홈

믹아의 개발일기

mik-a.com/m

개인 공부 블로그

구독자
2
방명록 방문하기

주요 글 목록

  • [Flutter] iOS : 개발자를 확인할 수 없기 때문에 ‘iproxy’을(를) 열 수 없습니다. 새로운 맥에서 ios 실기기 빌드하는데 해당 에러가 뜨면서 앱이 하얀화면에서 멈춰있었다. [VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555. [VERBOSE-2:FlutterObservatoryPublisher.mm(103)] On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugg.. 공감수 1 댓글수 10 2022. 8. 3.
  • [Flutter] flutter 3.0 업데이트 후 iOS 빌드 에러 Xcode's output: ↳ Writing result bundle at path: /var/folders/mw/s87p0r9j4cnbnl0pbskz815h0000gp/T/flutter_tools.NCX2rj/flutter_ios_build_temp_dirpXAxz0/temporary_xcresult_bundle : Error: Member not found: 'UnicodeChar'. ../…/src/structs.g.dart:661 int get UnicodeChar => Char.UnicodeChar; ^^^^^^^^^^^ : Error: Setter not found: 'UnicodeChar'. ../…/src/structs.g.dart:662 set UnicodeChar(int value) .. 공감수 1 댓글수 17 2022. 5. 18.
  • [Flutter] Avoid 'print' calls in production code. 의 이유 개발하다보면 값을 확인하기위해 print 로 확인하는 경우가 많다. 그런데 Avoid 'print' calls in production code. 가 뜨면서 사용을 권장하지 않는다. 이유가 뭘까 일단 이 경고가 뜨는건 flutter 2.3.0 이후로 추가된 flutter_lints 패키지의 영향이다. 간단하게, flutter 에서 권장하는 문법으로 코딩하게 조언해주는 패키지다 pubspec.yaml 파일에 가보면 이렇게 패키지가 등록되어있을텐데 삭제하면 이 경고는 더 이상 뜨지 않는다. 경고를 해주는 이유는 print() 는 release 모드로 빌드해도 logcat 등에 그대로 출력된다. 만약 사용자에게 숨겨야하거나 민감한 내용을 print 를 삭제하지 않아서 로그에 그대로 나오게 된다면 문제가 생길수.. 공감수 1 댓글수 8 2022. 5. 9.
  • [Flutter] xcode build parse issue module not found ios 빌드를 해야하는 일이 있어서 xcode 에서 빌드를 하는데.. Parse Issue, Module not found 에러가 떴다.. 알고보니 flutter/ios 폴더의 Runner.xcodeproj 파일로 프로젝트를 열었는데 Runner.xcworkspace 로 프로젝트를 열어야 했다. 아무튼 이렇게 빌드랑 시뮬레이터에서 실행까진 완료했는데 archive 하려니깐 또 위의 에러가 뜨더라.. 쩝. 해결하긴 했는데 뭐가 문젠진 모르겠다. 1. flutter clean 2. flutter pub get 3. cd ios 4. pod install clean 으로 빌드 파일 등을 싹 지우고 pod install 로 새로 설치해주니 archive 가 되긴 되더라. 아마 앱패키지명이랑 버전등 이것저것 바꾸.. 공감수 1 댓글수 8 2022. 2. 4.
  • [Flutter] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly" flutter 에서 fcm 을 추가하기 위해 firebase core 와 firebase messaging 을 추가하고 빌드하려니 에러 발생. -------------- firebase_core: Using Firebase SDK version '8.10.0' defined in 'firebase_core' firebase_messaging: Using Firebase SDK version '8.10.0' defined in 'firebase_core' [!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": In Podfile: firebase_core (from `.symlinks/plugins/firebase_core.. 공감수 1 댓글수 1,025 2022. 1. 12.
  • [Flutter] VScode 에서 region 을 이용하여 코드 folding 하기 어떤 기능에 대한 코드를 아주 많이 작성하는 경우도 있다. 이게 줄이 길어질수록 한눈에 딱딱 보기가 조금 어려워진다 예전에 유니티할땐 #region ~~ 으로 묶을수가 있었는데 flutter[dart] 에서는 그런기능이 없나? 찾아봤다 https://marketplace.visualstudio.com/items?itemName=maptz.regionfolder #region folding for VS Code - Visual Studio Marketplace Extension for Visual Studio Code - Provides folding for text wrapped with #region comments in VS Code. marketplace.visualstudio.com vscode의.. 공감수 0 댓글수 441 2021. 12. 30.
  • Flutter doctor - Android Studio (not installed) 해결 분명 안드로이드 스튜디오가 설치되어있는데 설치되지 않았단다. flutter config --android-studio-dir="C:\Program Files\Android\Android Studio" 안드로이드 스튜디오의 경로를 지정해주자 안드로이드 스튜디오 문제는 해결됐다 그런데 이제 갑자기 Android toolchaing 에서 경고가 뜬다. flutter doctor --android-licenses 이게 제대로 라이센스 동의하는 문구가 나올수도 있고 이런 에러가 나올 수도 있다. (Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema) 라이센스 동의하는 문구가 나오면 y 입력으로 그.. 공감수 10 댓글수 7 2021. 5. 22.
  • [Flutter] listview 이전 아이템들 렌더링 유지하기 listview 를 사용중인데 item 에 image 가 들어간다. 문제는 이 이미지가 network 에서 받아와서 이미지의 높이를 받아오기전까지 모른다는거... 그래서 이미지를 받아와서 container height 를 설정해주고 있다 문제는 리스트뷰를 쫙~ 내리고 다시 올라올때 listview 특성상 기존 아이템들을 잠시 제거했다가 화면에 보일때 다시 렌더링한다는거... 기존 아이템이 제거돼서 높이가 0이 됐다가 다시 화면에 보여 렌더링되면서 높이가 100? 200? 정도 로 설정되면서 스크롤이 갑자기 한움큼 내려가버리는 문제 발생. 그래서 listview 나 pageview 같은 곳에서 기존 아이템들을 살릴 수 있는 방법을 찾아봤다. import 'package:flutter/material.dar.. 공감수 1 댓글수 19 2021. 5. 21.
  • [Flutter] 위젯 크기, 위치 구하기 flutter 에서 Globalkey 를 이용하여 위젯의 크기와 위치를 구하는 방법. 크기를 구할땐 LayoutBuilder 위젯도 있다. 여기선 GlobalKey 로 구하는 법 베이스 코드 // ... GlobalKey _redBoxKey = GlobalKey(); GlobalKey _greenBoxKey = GlobalKey(); GlobalKey _blueBoxKey = GlobalKey(); @override Widget build(BuildContext context) { return Scaffold( body: SafeArea( child: Column( mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ Center( child: C.. 공감수 2 댓글수 6 2021. 5. 4.
  • [Flutter] Unhandled Exception: Bad state: Insecure HTTP is not allowed by platform flutter 개발 중 내부 서버와 http 통신을 하려고 했는데 발생한 에러. https 서버도 열어놨었는데 내부 서버라 인증서 문제로 http 서버를 열어서 하는데 http 통신도 안되는거.. http 통신이라도 해결해보자 [root]\android\app\src\main 의 AndroidManifest.xml 파일을 수정 공감수 1 댓글수 15 2021. 4. 27.
  • [Flutter] keyboard bottom overflowed -- by pixels 인풋을 위해 keyboard 가 나왔을 때 bottom overflowed 문제가 발생했다. 현재 내 코드와 상황. return Scaffold( appBar: AppBar( elevation: 0, leading: leadingIcon, backgroundColor: Colors.white, titleTextStyle: TextStyle( color: Colors.black, ), centerTitle: true, title: Text( 'Welcome', style: TextStyle(color: Colors.black), ), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ Con.. 공감수 1 댓글수 8 2021. 4. 23.
  • [Dart] VScode 자동 줄 바꿈 글자 수 수정 어떻게 flutter를 개발하게 되어 코딩중인데 vscode 에서 80자만 넘어가도 자동으로 줄 바뀜이 일어나버린다.. 일단 코딩 가이드에선 80자 이상을 피하라고 한다. 그래도 일단 바꾸는 법 vscode 세팅을 들어가서 dart.line 을 검색하면 80으로 설정되어있다. 수정하면 된다. 80으로 설정된 숫자를 변경하면 된다. 아직 내가 dart 언어에 안 익숙해서 보기가 좀 불편해서 잠시 바꿨는데 다른 사람과 작업할때도 많을 것 이고 이왕이면 코딩 가이드에 맞춰서 짜는걸 추천한다. 공감수 2 댓글수 14 2021. 4. 20.
    문의안내
    • 티스토리
    • 로그인
    • 고객센터

    티스토리는 카카오에서 사랑을 담아 만듭니다.

    © Kakao Corp.