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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6820460/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:51:51  来源:igfitidea点击:

Couldn't load a xcode project because it is already opened from another project or workspace

objective-ciosxcodethree20

提问by David

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,因为它已从另一个项目或工作区打开。

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

我只有一个项目打开。关于为什么我收到此消息的任何建议?

回答by user906825

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

我有同样的问题。完全退出 xcode 并再次打开它。

回答by Adam Waite

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

单独退出 Xcode 对我不起作用。我所做的是:

  1. File->Close Workspace/Project on every open workspace.
  2. Xcode->Quit
  3. Open Xcode again and open troublesome workspace
  1. 每个打开的工作区上的文件->关闭工作区/项目。
  2. Xcode->退出
  3. 再次打开Xcode,打开麻烦的工作区

回答by Adriana

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

我已经完全关闭了 Xcode 但它没有工作。我已经杀死了过程,它终于做到了!!!:-)

回答by GTAE86

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 中双击我的工作区重新启动,然后一切顺利。

回答by slobodans

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

我有同样的问题。使用 pod update 命令更新可可豆荚后修复。

回答by rockdaswift

Restart the computer and try again opening the project :)

重新启动计算机并再次尝试打开项目:)