Flutter 54

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

Flutter - iOS 앱 업로드 for TestFlight

Flutter 에서 iOS 앱 업로드를 하는 방법을 단계별로 설명합니다. 1. Xcode 를 동작한다. 2. 최상단 메뉴바에서 Product -> Archive 를 눌러준다 여기서 Archive 가 누를 수 없는 상태(비활성화)일 수도 있다. 그때는 Runner를 하는 대상이 에뮬레이터가 아니고 실제 디바이스를 대상으로 한지 체크해봐야 합니다. 참고 3. 빌드가 끝나면 업로드 작업을 할 수 있는 화면이 보인다. 그리고최신 빌드 버전이 상단에 보일테니 우측에 Distribute App 을 누른다. 4. 쭉쭉 진행한다.

Dev/Flutter 2022.01.12