Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Archive fails with error archive Unable to read GoogleService-Info.plist at path Xcode 10.1

Tags:

xcode

firebase

It's the first time I go through the process of archiving my app and myy problem is that when I build the projects it builds fine, it runs fine both on simulator than physical iPad, but when I do choose Archive it fails with the error message Command PhaseScriptExecution failed with a nonzero exit code 31merror: Unable to read GoogleService-Info.plist at path. Following other posts here on SO, I made sure that in Build Phases/Copy Bundle Resources GoogleService-Info.plistis present. I also checked that GoogleService-Info.plist Target Membership is correctly selected. I tried to delete, throw it into trash and re-add it to the project by drag and drop. I restarted Xcode but nothing solved it. Any ideas on what else I should have a look at? Could it be related to my developer's certificate? As always many thanks.

UPDATE:

I tried uninstalling the pods and reinstalling them but with no changes. I downloaded again the GoogleService-Info.plistfrom Firebase but also that didn't make a difference.

Update 2:

I deleted the firebase app and recreated one. Re-downloaded the GoogleService-Info.plistand it's working ok..both on iPad and simulator.

but still archive fails not been able to read the GoogleService-Info.plist..

I'm actually deploying for iOS 9.3 and up..can it have something to do with it?

like image 953
Vincenzo Avatar asked Dec 31 '22 15:12

Vincenzo


1 Answers

After a few days of comparing this app with the other one, part of the same bundle, that Archives without a problem, I finally found the problem: A second Fabric script ..that should be used for Answers which was giving me problems and I just put aside using for the moment. I forgot to delete the script for it. Now that I think about the script could be well be the reason for Answersnot to be working ..time to investigate it ..

Well.. hopefully this will be of help to others..

The incriminated script:

"${PODS_ROOT}/Fabric/upload-symbols" -gsp "${PROJECT_DIR}/GoogleService-Info.plist" -p ios "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
like image 189
Vincenzo Avatar answered Feb 06 '23 23:02

Vincenzo