存档失败,并显示错误存档无法读取路径Xcode 10.1上的GoogleService-Info.plist [英] Archive fails with error archive Unable to read GoogleService-Info.plist at path Xcode 10.1

查看:66
本文介绍了存档失败,并显示错误存档无法读取路径Xcode 10.1上的GoogleService-Info.plist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次完成存档应用程序的过程,我的问题是,当我构建项目时,它可以很好地运行,并且在模拟器上的运行都比在物理iPad上都好,但是当我选择 Archive 失败,并显示错误消息 Command PhaseScriptExecution失败,并返回非零退出代码 31merror:无法读取路径上的GoogleService-Info.plist.在SO上的其他帖子之后,我确保在 Build Phases/Copy Bundle Resources GoogleService-Info.plist 中存在.我还检查了是否正确选择了 GoogleService-Info.plist 目标成员资格.我试图删除,将其扔进垃圾桶,然后通过拖放将其重新添加到项目中.我重新启动了Xcode,但没有解决任何问题.关于我还有什么需要看的任何想法?可能与我的开发者证书有关吗?一如既往的感谢.

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.

更新:

我尝试卸载Pod并重新安装它们,但没有任何更改.我再次从Firebase下载了 GoogleService-Info.plist ,但这也没有任何改变.

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.

更新2:

我删除了firebase应用并重新创建了一个.重新下载 GoogleService-Info.plist ,它在iPad和模拟器上都可以正常运行.

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

但仍然存档失败,无法读取 GoogleService-Info.plist ..

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

我实际上是在为iOS 9.3及更高版本进行部署..它与它有关系吗?

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

推荐答案

几天后,将该应用程序与同一捆绑包中的另一个应用程序进行了比较,发现存档没有问题,我终于找到了问题:应该用于 Answers Fabric 脚本..这给我带来了问题,我暂时暂时不使用.我忘了为此删除脚本.现在,我认为该脚本很可能是 Answers 不工作..time进行调查..

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..

所包含的脚本:

"${PODS_ROOT}/Fabric/upload-symbols" -gsp "${PROJECT_DIR}/GoogleService-Info.plist" -p ios "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"

这篇关于存档失败,并显示错误存档无法读取路径Xcode 10.1上的GoogleService-Info.plist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆