Xcode workspace integrity - couldn't load project (pods.xcodepoj)
Asked Answered
R

4

22

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?

Redfin answered 22/7, 2020 at 21:59 Comment(1)
rm -rf “${HOME}/Library/Caches/CocoaPods” rm -rf “`pwd`/Pods/” pod update I did this to reinstall all pods and solved the issueRedfin
L
20

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.

Luckey answered 22/7, 2020 at 22:4 Comment(4)
hi, @Ben i'm also facing the same issue, tried your solution but still the issue is there.Tedder
@NikhilSawant if pod install works without error then you have something else going on with your xcproj files. Maybe do a diff with a previous version that is known to be working? (Diffing project files is no fun, but that's the only way to resolve this)Luckey
Sometimes just installing pods does not work. After installing pods (pod install), reopen the project after quiting XCode, it works.Carminecarmita
@Carminecarmita if that's happening then something is wrong with your setup. If you're not able to do a build after pod install, you should focus on getting that to work.Luckey
G
1

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.

Globin answered 16/2, 2022 at 8:10 Comment(0)
C
0

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.

Coenesthesia answered 25/4, 2024 at 0:5 Comment(0)
E
0

Try this - worked for me

sudo gem install cocoapods
pod repo update
Edgy answered 30/7, 2024 at 0:33 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.