Flutter 47

Flutter Pub outdated

1. 업그레이드 가능한 패키지가 있는지 찾는다. $flutter pub outdated 2. 패키지들을 업그레이드 시켜준다. $flutter pub upgrade 3. 다시 확인해서 업그레이드 가능한 패키지들을 찾아보면 업그레이드 됐음을 알 수 있다. $flutter pub outdated Flutter 명령어 add pubspec.yaml에 의존성을 추가한다. cache Work with the Pub system cache. deps 패키지 의존성들을 출력한다. downgrade 플러터 프로젝트의 패키지들을 다운그레이드한다. get 플러터 프로젝트로 패키지들을 가져온다. global Work with Pub global packages. login Log into pub.dev.. logout Log..

Dev/Flutter 2022.05.10

Flutter(ios) - 릴리즈(Release) 모드

이슈 Debug 모드에서는 문제가 생기지 API 연결이 Release 모드 에서 연결이 되지 않는 문제가 발생했습니다. 얼마전까지만해도 Release 모드에서도 문제가 되지 않았었는데 난감했다. 참고한 글에는 Local Network 권한 이슈라고 하는데... 참 이상한게 추가한 라이브러리도 없는데... 갑자기 해당 이슈가 발생했다는건데... 어디서 무엇이 어떻게 된건지... 아직 아리송하다. 에러 local network broadcast in apps need to be declared in the app's Info.plist 해결방법 NSBonjourServices _dartobservatory._tcp 공식문서 https://docs.flutter.dev/development/add-to-app..

Dev/Flutter 2022.04.28

Flutter 다국어 지원 - Localization

Flutter 다국어 지원, Flutter Localization 등으로 검색하면 많은 자료가 나옵니다. 참고자료 1. 기본적으로 참고해야하는 자료는 공식 문서 - https://docs.flutter.dev/development/accessibility-and-localization/internationalization 하지만 영어가 익숙하지 않다보니 공식문서만 보면 이해가 잘 되지 않아서 다른 한글 자료 및 영상 자료를 추가로 참고. 2. 유튜브 영상 - https://youtu.be/Zw4KoorVxgg 상세하게 순서 등 다 나오다보니 감사하게 공식 문서와 함께 참고. 다국어 지원 절차 1. 라이브러리 추가 - pubspec.yaml 파일에 추가 a. dependencies 에 flutter_loc..

Dev/Flutter 2022.04.22

Flutter iOS 개발시 주의할 사항

Simulator 사용 (에뮬레이터) Flutter 로 iOS 개발할때 Simulator 에 빌드해서 앱을 설치하고 확인합니다. iOS Simulator 는 macOS 에서만 사용할 수 있는 가상 디바이스(Xcode 필요) 빌드모드 설명 Flutter의 빌드 모드 기본적으로는 디버그(Debug) 모드 로 빌드를 진행하지만, 외부 테스트 및 앱스토어 등록을 위해서 프로파일(Profile) 혹은 릴리즈(Release) 모드로 빌드를 진행합니다. 디버그 모드로 빌드한 경우에는 앱이 Simualtor 에 설치가 가능하지만 프로파일, 릴리즈 모드로 빌드한 경우에는 Simulator 에 설치가 불가능합니다. 즉, 프로파일, 릴리즈 버전으로 빌드한 경우에는 실제 디바이스를 연결해서 앱을 설치해야 합니다. 빌드모드 S..

Dev/Flutter 2022.04.14

[iOS/Flutter]Push Notification 이 전송되지 않는 문제

해당 이슈는 Flutter 로 개발하면서 발생하는 이슈를 기록 합니다. [이슈] FCM의 Messaging 기능에서 테스트 메시지 전송 기능으로 테스트 메세지를 보내면 Push Notification 가 전달되는데, Firebase Functions 에서 혹은 로컬에서 Emulator 로 Firebase 모듈에서 제공하는 API 를 통해서 Push 를 보내면 iOS Device 에 Push Notification 오질 않는다. [해결] 원인은 정확하게 모르겠으나 결과론적으론 빌드 형태가 문제인걸로 판단된다. Debug 모드로 빌드를 하면 FCM의 Messaging 기능에서 테스트 메세지 전송 기능으로 테스트 Push Notification 은 동작하지만 서버에서 코드로는 Push Notification ..

Dev/iOS 2022.03.23

Xcode 와 iOS Device 번이 맞지 않아서 생기는 오류

원인 나의 실수(?)로 iPhone 버전을 최신으로 올려버려서 Xcode 버전이 호환이 되지 않는 문제가 발생했다.... 내용 Terminal 에서 flutter doctor 명령어로 나온 이슈 [✓] Connected device (1 available) ! Error: Failed to prepare device for development. This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibi..

Dev/iOS 2022.03.17

Flutter - Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.

내용 : Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. 해결책 1. Go to /ios folder inside your Project. 2. Delete Podfile.lock (YourPoject/ios/Podfile.lock) 3. Here you have to do it according to the chip of your Mac, here I have given for both. thanks @Kamal Panara for identified this For Intel chip users Run pod install --repo-update (Make sure your cd into the iOS d..

Dev/Flutter 2022.02.08

Firebase Functions with Flutter

Firebase 에 서버처럼 백엔드 코드를 실행할 수 있는 서버리스 프레임워크 https://firebase.google.com/docs/functions/get-started 시작하기: 첫 번째 함수 작성, 테스트, 배포 | Firebase Documentation 의견 보내기 시작하기: 첫 번째 함수 작성, 테스트, 배포 Cloud Functions를 시작하려면 이 튜토리얼을 따라해 보세요. 이 튜토리얼은 필수 설정 작업부터 시작해 다음과 같은 관련 함수 두 개를 만들 firebase.google.com Firebase Functions 와 앱 통신 테스트 코드 (동작 확인 코드 / 2022.02.04) https://codewithandrea.com/articles/flutter-tutorial-f..

Dev/Firebase 2022.02.04