Nice programing

프로젝트에서 유효한 GoogleService-Info.plist를 찾을 수 없습니다.

nicepro 2020. 12. 13. 11:08
반응형

프로젝트에서 유효한 GoogleService-Info.plist를 찾을 수 없습니다.


Xcode 9 베타 4로 신속한 3.2 코드를 실행하면 다음과 같은 오류가 발생합니다.

*** Terminating app due to uncaught exception 'com.firebase.core', reason: '[FIRApp configure]; (FirebaseApp.configure() in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.'

이름이 정확히 일치하고 유효한 GoogleService-Info.plist 파일이 이미 있습니다.

파이어베이스에 대한 재판이 있습니까?


Google-Info.plist프로젝트 에서 파일을 제거하고 프로젝트 폴더의 옵션 메뉴에서 추가해보십시오.


나는 같은 문제가 있었다.

프로젝트에서 Googleservice-info.plist를 클릭하고 인스펙터에서 앱의 Target Membership을 확인하십시오. 그것은 나를 위해 그것을 고쳤습니다.

이것이이 충돌의 이유이며 파일을 제거하고 다시 추가하는 것은 위의 답변에서 제안한 또 다른 방법입니다. 그러나 실제 원인은 이것이고 이것이 그것을 해결하는 올바른 방법입니다.

자세한 내용은 아래 이미지를 참조하십시오.

여기에 이미지 설명 입력


프로젝트에 파일을 추가 한 후에 컴파일 소스 섹션 빌드 단계추가해야 할 수도 있습니다 .


불행히도 다행스럽게도 지정된 오류는 매우 정확합니다. 현재 사용 가능한 옵션은 하나뿐입니다. 즉, Google-Info.plist프로젝트에 파일을 올바르게 배치 합니다. 제거하고 다시 추가하십시오. 또한 대상이 선택되었는지 확인하십시오.


  1. 파일 이름이 올바른지 확인하십시오. 예 : " GoogleService-info.plist"
  2. finder프로젝트 이름 으로 Mac의 프로젝트에 추가 한 다음 프로젝트로 드래그하여 참조합니다.
  3. 마지막으로 Silvajee가 언급했듯이 file inspectorplist 파일 로 이동하여 아래 상자 target membership를 선택하여 project.

Xcode를 다시 시작하면 위의 옵션 중 어느 것도 작동하지 않았습니다.


빌드 단계로 이동하여 사본 번들 리소스에 파일을 추가합니다. 그게 다야.


이 단계는 내 문제를 해결했습니다. 다음을 참조하십시오. 1. GoogleService-Info.plist 파일을 공유 리소스와 같은 위치의 프로젝트로 끌어서 놓아야합니다. 파일을 성공적으로 추가했으면 프로젝트 빌드에도 포함해야합니다.

2. 프로젝트의 "Build Phases"섹션에서 프로젝트에 GoogleService-Info.plist가 포함되어 있는지 다시 확인합니다.

3. 파일 이름을 다시 확인하십시오. 파일 이름은 정확히 GoogleService-Info.plist 여야합니다. 일반적인 맞춤법 오류에는 GoogleServices-Info.plist 및 GoogleService-info.plist가 포함됩니다. 대소 문자를 구분하고 정확히 이름이 지정된 것만 작동합니다.


  1. Actually this error is occur when GoogleService-Info.plist file is not actually located in our project folder but it just have a reference to that file where it is downloaded. So solution is that remove reference to this file and again add it to your project folder by drag and drop or by using "Add Files ..." option by right click to your project folder. Also recheck whether file is locating your project folder destination otherwise error will be occur again.

  2. Don't forget to check your "GoogleService-Info.plist" file have same name as shown in error otherwise rename it.


Doing a clean then build a couple times worked for me.


1 - open "GoogleService-Info.plist" and change any or to and

2 - reopen the xamarin solution 3 - it should work now


If you have multiple environments (Production, Develop, Staging), you will need a different Google.plist for each.

They all have to have the same name.

To get around this, create folders for each of these files (one for each environment) and place them inside their corresponding folders.

When you drag the files from the Finder to Xcode, make sure to select the proper environment for each under Target Membership

That will do the trick and allow you to build environments separately. Especially if each environment has a different Bundle ID.


For those of you working with Ionic, make sure to open your .xcworkspace file in Xcode first, then drag the GoogleService-info.plist file into the Resources folder.

Most tutorials online don't do a good job of explaining that portion for some reason.

Shout out to Shahzaib Maqbool because his comment helped me get this for my project.


I solved the issue by deleting the project from Firebase and deleted the GoogleService-Info.plist from project. After I again added the project to Firebase and added the new GoogleService-Info.plist file worked for me.


This error occur download google service more than 1 time. When we download first time from firebase, it's like GoolgeService-Info.Plist. If you download again, that will come GoogleService-Info(1).Plist. We need to remove (1) from GoogleService-Info(1).Plist.


Below setting can fix my compiler fail 1. Add to "Copy Files" 2. Not add to "Copy Bundle Resources"

여기에 이미지 설명 입력

참고URL : https://stackoverflow.com/questions/45317777/could-not-find-a-valid-googleservice-info-plist-in-your-project

반응형