본문 바로가기
반응형

flutter66

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.
[ios] Unhandled Exception: [core/not-initialized] Firebase has not been correctly initialized [ios] Unhandled Exception: [core/not-initialized] Firebase has not been correctly initialized 문제 상황 빌드할 때 에러 메시지와 함께 실패한다. Unhandled Exception: [core/not-initialized] Firebase has not been correctly initialized 해결 방법 1. 구글 파이어베이스 콘솔에서 GoogleServices-Info.plist를 생성하여 플러터 프로젝트에 포함시킨다. 해당 파일은 Info.plist와 같은 디렉터리에 복사해주면 된다. 2. main()함수에서 await Firebase.initializeApp(); 을 호출한다. 아래 참고! Future main() a.. 2023. 1. 14.
플러터 업그레이드 되면서 바뀐 버튼 정리 플러터 업그레이드 되면서 이름이 바뀐 버튼 정리 기존 변경 FlatButton TextButton OutlineButton OutlinedButton RaisedButton ElevatedButton +추가) Scaffold 인스턴스도 ScaffoldMessenger로 바뀌었음 ex) 기존:Scaffold.of(context).showSnackBar() ==> 변경ScaffoldMessenger.of(context).showSnackBar() 2023. 1. 14.
flutter: command not found 해결 방법 flutter: command not found해결 방법  플러터를 설치하고 나서 flutter: command not found 에러 메시지가 나올 때가 있다.이 때는 bash와 zsh의 환경 변수 경로를 추가하면 된다. bash 환경 변수 추가터미널을 열고 vi .bash_profile.bash_profile에 아래처럼 flutter의 바이너리 파일이 있는 디렉터리를 지정 (경로는 각자 개발 환경마다 다름!) export PATH="$PATH:~/development/flutter/bin"            3. source ./.bash_profile 명령어로 환경 변수 경로 적용 2. zsh 환경 변수 추가 (mac OS - 카날리타 부터)터미널을 열고 vi .zshrc.zshrc 에 아래처럼.. 2023. 1. 14.
반응형