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.plist
is 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.plist
from Firebase but also that didn't make a difference.
Update 2:
I deleted the firebase app and recreated one.
Re-downloaded the GoogleService-Info.plist
and 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?
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 Answers
not 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}"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With