Cocoapods: Can't open project from workspace

Created on 25 Jan 2013  路  15Comments  路  Source: CocoaPods/CocoaPods

Hi,

I installed pods for my fresh XCode project (with some cocos2D). Actually I've installed only 1 Pod - TestFlightSDK at the moment.
Pod was downloaded, workspace created etc.
When I open workspace it opens Pods project but cannot open original one. It shows error:

Workspace Integrity
Couldn't load CocosAlpha.xcodeproj because it is already opened from another project or workspace

Project isn't opened.
I already tried to restart XCode, restart my Mac, delete Pods, workspace and install them again. But nothing helps.
Any ideas why it can happens?

Most helpful comment

I had the same issue, when I made sure xcode was closed before running 'pod install', that fixed my problem. Then again that could just be coincidence:)

All 15 comments

Unfortunately I can鈥檛 offer you any advice regarding this and I鈥檓 pretty sure it鈥檚 an Xcode issue, as I haven鈥檛 heard others with similar problems. Sorry.

You can ask on the mailing-list if people know of this and how they fixed it, the Apple mailing-list or devforums, or something like StackOverflow.

Oops, forgot to add: one thing I noticed from others reporting this problem (elsewhere) is that some have subprojects in their projects which cause the issue.

I had the same issue, when I made sure xcode was closed before running 'pod install', that fixed my problem. Then again that could just be coincidence:)

I had the same issue, which appeared to be caused by having XCode open when running 'pod install'. Not sure why this would cause a problem, but it does.

I think that the issue is that Xcode doesn't allow to open a project if it is already opened on another window. It is necessary to close the client project before opening the workspace.

I created a macruby project in xcode, and it gives me the same error regardless of whether I have xocde opened when running pod install !!

Oops, I found out that xcode resumed with the old xcodeproj window opened on startup, and that's causing the problem I described :P

Yeah you are right.

The solution is to open xcode and go to File > Close Project before opening the workspace. If you have already opened the workspace, you may have to go to File > Close Workspace and then File > Close Project.

@Retistic thanks! that worked for me. I ran pod install while having XCode opened with the project.

Thanks, closing Workspace & Project in XCode after a 'pod install' worked for me. Thanks!

@Retistic Thanks! Closing .xcodeproj then pod install worked.

The solution works for me. 1) close project/workspace 2) pod install Thanks!

This works only when you are installing the pod for the first time.
I am facing an issue where in I am trying to rebase feature branch (FB) on to develop. I am in the workspace. Rebase is done and after this I am unable to open the workspace. The file "pods.xcodeproj is unable to open". Any help is appreciated.

thanks, you saved my day !
just close xcode and run pod install

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hmistry picture hmistry  路  3Comments

k06a picture k06a  路  3Comments

sonu5 picture sonu5  路  3Comments

iosdev-republicofapps picture iosdev-republicofapps  路  3Comments

Curtis-Halbrook picture Curtis-Halbrook  路  3Comments