简体   繁体   English

Pod更新后(Xcode)Github缺少文件

[英]Github Missing Files After a Pod Update (Xcode)

I am using GitHub to share my project with others. 我正在使用GitHub与其他人共享我的项目。 It was setup and working great. 它的设置和工作很棒。 Then I just did a pod update and pushed with the update. 然后我只是做了一个pod更新,并推送了更新。 Now when the project is pulled from the git it seems to be missing pod related files. 现在,当从git中提取项目时,似乎缺少与pod相关的文件。

In other words, the program builds fine on computer that pushed the update. 换句话说,该程序可以在推动更新的计算机上正常构建。 However when it's cloned error message like pop up: 但是,当克隆错误消息时,如弹出:

error: <directory location>/Pods/Target Support Files/BoringSSL-GRPC/BoringSSL-GRPC.xcconfig: unable to open file (in target "BoringSSL-GRPC" in project "Pods") (in target 'BoringSSL-GRPC') 错误:<目录位置> / Pods /目标支持文件/BoringSSL-GRPC/BoringSSL-GRPC.xcconfig:无法打开文件(在项目“ Pods”中的目标“ BoringSSL-GRPC”中)(在目标“ BoringSSL-GRPC”中)

I tried doing a commit and pushing from terminal but the problem persists. 我尝试进行提交并从终端推送,但问题仍然存在。 Then I tried creating a new git but when I push to it all the old commits are still there and the problem persists. 然后我尝试创建一个新的git,但是当我将其推送到所有旧提交时,仍然存在并且问题仍然存在。 It feels like a fresh clean commit starting from nothing might fix the issue, but I haven't been able to figure out how to do something like that. 感觉像是从零开始的全新提交也许可以解决问题,但我还无法弄清楚该怎么做。

Check your commit changes after pod updated. 在pod更新后检查您的提交更改。 Follow these steps: 跟着这些步骤:

1/ Pod update and push this commit to GitHub 1 / Pod更新并将此提交推送到GitHub
2/ Go to GitHub, click "commits" tab > click the commit that did pod update > see if pods changes is on the file changes record 2 /转到GitHub,单击“提交”选项卡>单击完成pod更新的提交>查看pod change是否在文件更改记录中
3/ If you don't see pods changes, that means you do not push these changes successfully. 3 /如果看不到广告连播更改,则表示您未成功推送这些更改。
4/ Check .gitignore file, make sure it doesn't contain syntax like: pods/* 4 /检查.gitignore文件,确保它不包含如下语法: pods/*

对于以后偶然发现此问题的任何人,我都无法弄清楚如何解决丢失的文件问题,因此我只是在pod更新之前将项目回滚到了git。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM