无法加载xcode项目,因为它已经从另一个项目或工作区打开

时间:2021-06-02 22:56:45

I have a project that has one target dependency. The target dependency is dependent on a framework called Three20.

我有一个项目有一个目标依赖项。目标依赖于一个名为Three20的框架。

The dependency tree looks like this.

依赖树是这样的。

myProject
   -> myCustomFramework
         -> Three20

When I tried to build and run I get the following error message.

当我尝试构建和运行时,我得到以下错误消息。

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

工作区完整性不能加载Three20。xcodeproj是因为它已经从另一个projet或工作区打开。

I have only one project open. Any suggestions on why I am getting this message?

我只有一个项目要做。关于我为什么收到这个消息有什么建议吗?

5 个解决方案

#1


101  

I had the exact same problem. Quitting the xcode completely and opening it up again worked.

我也有同样的问题。完全放弃xcode,重新打开它。

#2


18  

Quitting Xcode alone didn't work for me. What I did was:

仅仅是放弃Xcode对我来说是没用的。我所做的是:

  1. File->Close Workspace/Project on every open workspace.
  2. 文件->关闭每个开放工作区/项目。
  3. Xcode->Quit
  4. Xcode - >退出
  5. Open Xcode again and open troublesome workspace
  6. 再次打开Xcode并打开有问题的工作区

#3


3  

I have close the Xcode completely but IT didn't work. I have killed the procces and It did finally!!! :-)

我已经完全关闭了Xcode,但它不起作用。我杀了游行队伍,它终于杀了!!!:-)

#4


1  

Had the same problem in a case where I got a workspace working, closed it, copied the containing folder to a USB drive, then reopened. I got that message for one of the projects in the workspace. Closed, tried again, removed/re-added project - no luck. Closed, tried to open the project alone and got the message about it being open in another workspace - not true. Quit XCode, restarted by double-clicking my workspace in Finder, and all went well after.

如果我有一个工作空间,关闭它,将包含文件夹复制到一个USB驱动器,然后重新打开,就会遇到同样的问题。我得到了工作空间中的一个项目的消息。关闭,再次尝试,删除/重新添加项目-没有运气。关闭后,尝试单独打开项目,并得到在另一个工作区中打开的消息——不是真的。退出XCode,在Finder中双击我的工作区重新启动,一切都进行得很顺利。

#5


1  

I had same problem. Fixed after updating of cocoa pods with pod update command.

我有同样的问题。修正了用pod更新命令更新可可豆荚后的问题。

#1


101  

I had the exact same problem. Quitting the xcode completely and opening it up again worked.

我也有同样的问题。完全放弃xcode,重新打开它。

#2


18  

Quitting Xcode alone didn't work for me. What I did was:

仅仅是放弃Xcode对我来说是没用的。我所做的是:

  1. File->Close Workspace/Project on every open workspace.
  2. 文件->关闭每个开放工作区/项目。
  3. Xcode->Quit
  4. Xcode - >退出
  5. Open Xcode again and open troublesome workspace
  6. 再次打开Xcode并打开有问题的工作区

#3


3  

I have close the Xcode completely but IT didn't work. I have killed the procces and It did finally!!! :-)

我已经完全关闭了Xcode,但它不起作用。我杀了游行队伍,它终于杀了!!!:-)

#4


1  

Had the same problem in a case where I got a workspace working, closed it, copied the containing folder to a USB drive, then reopened. I got that message for one of the projects in the workspace. Closed, tried again, removed/re-added project - no luck. Closed, tried to open the project alone and got the message about it being open in another workspace - not true. Quit XCode, restarted by double-clicking my workspace in Finder, and all went well after.

如果我有一个工作空间,关闭它,将包含文件夹复制到一个USB驱动器,然后重新打开,就会遇到同样的问题。我得到了工作空间中的一个项目的消息。关闭,再次尝试,删除/重新添加项目-没有运气。关闭后,尝试单独打开项目,并得到在另一个工作区中打开的消息——不是真的。退出XCode,在Finder中双击我的工作区重新启动,一切都进行得很顺利。

#5


1  

I had same problem. Fixed after updating of cocoa pods with pod update command.

我有同样的问题。修正了用pod更新命令更新可可豆荚后的问题。