본문 바로가기
에러 해결방법

[에러] firebase 연동 중에 발생한 오류

by 개발짜 2024. 11. 29.

1. flutter 프로젝트 연동하다 발생한 오류

zsh: command not found: flutterfire

 

flutterfire 환경설정이 안돼서 발생한 오류이므로 ~/.zshrc 파일에 환경변수 설정을 해준다.

// ~/.zshrc 파일

export PATH="$PATH":"$HOME/.pub-cache/bin"

 

 

2. flutterfire configure 설정하다 발생한 Exception

Exception: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- xcodeproj (LoadError)
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from -e:1:in `<main>'

 

cmd 에서 cocoapod 와 pod 를 설치한다.

sudo gem install cocoapods && pod install

 

3. firebase 에 있는 데이터 가져오다 발생한 에러

Unhandled Exception: [cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.

 

firestore 에 권한이 지정되어 있지 않아서 발생한 것이므로 false 부분을 true 로 변경한다.

댓글