I pulled from git and everything works fine except I get this error even though I can still run the project. Is there a way to fix this?
This usually means there was a merge conflict that got committed to the actual project.pbxproj file.
Since this is a Pods project (which is ephemeral and can be recreated at will) you can run pod install
from the command line (in the same folder as your Podfile
and it will regenerate the project.
problem:- Workspace integrity (could not load project) I got the same issue also I hit and try many solutions (Restart mac, Cache data remove, pods update, pods install, etc) but all in vain.
Solution : Once I try to open the project the "Xcode.copy" opened intead of my original Xcode . I just close all projects after that I open the project from selecting Xcode directly from the finder.
Note:- do not go to the project folder then open project from "projectName.xcworkspace"
you just need to go finder(Spotlite search) and open Xcode and open from finder then you must select the desired project. The project will work perfectly and after that you can open project manually (in your folder etc) :) These things working from my side.
This happens often after a git merge. I got it fixed by copying the project file .xcodeproj
from the merged branch and replacing the damaged one with it.
I suppose for this to work the project files hierarchy should be identical. At least this does clear potential files reference that are no longer in the repo.
Try this - worked for me
sudo gem install cocoapods
pod repo update
© 2022 - 2025 — McMap. All rights reserved.
rm -rf “${HOME}/Library/Caches/CocoaPods” rm -rf “`pwd`/Pods/” pod update
I did this to reinstall all pods and solved the issue – Redfin