简体   繁体   中英

Github Missing Files After a Pod Update (Xcode)

I am using GitHub to share my project with others. It was setup and working great. Then I just did a pod update and pushed with the update. Now when the project is pulled from the git it seems to be missing pod related files.

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')

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. 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. Follow these steps:

1/ Pod update and push this commit to 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
3/ If you don't see pods changes, that means you do not push these changes successfully.
4/ Check .gitignore file, make sure it doesn't contain syntax like: pods/*

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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