xcode 无法通过 CoreSimulator spawn 启动 IBCCoaTouchImageCatalogTool

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33178032/
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-09-15 08:04:02  来源:igfitidea点击:

Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn

iosxcodeswift2xcode7.1beta

提问by Isuru

I have an Xcode project which was downloaded from the internet so I don't know which Xcode version was used to write it but the language is Swift 2. I opened it in Xcode 7.1 beta 1 and I get the following compile time error.

我有一个从 Internet 下载的 Xcode 项目,所以我不知道使用哪个 Xcode 版本来编写它,但语言是 Swift 2。我在 Xcode 7.1 beta 1 中打开它,出现以下编译时错误。

Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn

无法通过 CoreSimulator spawn 启动 IBCCoaTouchImageCatalogTool

enter image description here

在此处输入图片说明

I deleted the DerviedData foler, cleaned and build the project several times. Tried converting the project to latest Swift syntax but it says there's nothing to convert.

我删除了 DerviedData 文件夹,多次清理和构建项目。尝试将项目转换为最新的 Swift 语法,但它说没有什么可以转换的。

I'm all outta ideas. Suggestions?

我都没有想法了。建议?

回答by Oriol

The same happened to me and it was solved by cleaning the project. However, if you cleaned it —as you say you did—, I would try closing and reopening Xcode. Even though it seems stupid, it works more often than not.

我也遇到了同样的情况,通过清理项目解决了。但是,如果你清理了它——正如你所说的那样——,我会尝试关闭并重新打开 Xcode。尽管它看起来很愚蠢,但它经常起作用。

回答by Peter Schumacher

So After Trying a bit i removed the XCassets file form the Copy Bundle Resources, build once without it and then added it again. Solved it for me.

所以在尝试了一下之后,我从复制捆绑资源中删除了 XCassets 文件,在没有它的情况下构建一次,然后再次添加它。为我解决了。

回答by Airman00

I had the same issue. My solution was to do the following

我遇到过同样的问题。我的解决方案是执行以下操作

  1. Clean the Project
  2. Quit Xcode
  3. Reopen Xcode
  4. Build
  1. 清理项目
  2. 退出 Xcode
  3. 重新打开Xcode
  4. 建造

That got it working for some reason...

出于某种原因,这让它起作用了......

回答by Gourav Joshi

The above answers are correct. I have a bit similar approach.

以上答案都是正确的。我有一个类似的方法。

After, I use these steps:

之后,我使用以下步骤:

  1. Clean the project.

  2. Remove your Assets from your project(Remove References). Run the project without assets. Now the project will show some compile errors, these are not very tricky.

  3. Run the project, this time project run without your assets and may be chances of crash. This ensures that project will run.

  4. Now clean the project and add the assets, now run the project. The project runs successfully.

  1. 清理项目。

  2. 从您的项目中删除您的资产(删除引用)。运行没有资产的项目。现在项目会显示一些编译错误,这些都不是很棘手。

  3. 运行项目,这次项目在没有你的资产的情况下运行,可能会崩溃。这确保项目将运行。

  4. 现在清理项目并添加资产,现在运行项目。项目运行成功。

For me it works. I hope it will be helpful to you.

对我来说它有效。我希望它会对你有所帮助。

回答by Will H

Possible solution for those struggling with the above answers.

为上述答案而苦苦挣扎的人的可能解决方案。

If you've just restored your machine from a time machine backup (migrating from old to new machine), you may want to re-install Xcode.

如果您刚刚从时间机器备份中恢复了您的机器(从旧机器迁移到新机器),您可能需要重新安装 Xcode。

It doesn't appear to bring the caches or other important settings across properly from the time machine restore.

它似乎没有将缓存或其他重要设置正确地从时间机器还原中带过来。

I've just taken that; what appears to be a drastic step, but it's worked!

我刚刚接受了;这似乎是一个激烈的步骤,但它奏效了!

Instructions on how to do so: Completely reinstall Xcode 9

有关如何执行此操作的说明:完全重新安装 Xcode 9

-W

-W

回答by Gourav kumar

If you have this type of error in your project then follow these steps:

如果您的项目中出现此类错误,请按照以下步骤操作:

  1. Clean the project
  2. And go to storyboard and select any viewController
  3. And Run the project again
  1. 清理项目
  2. 并转到故事板并选择任何 viewController
  3. 并再次运行项目

This will successfully resolve the error.

这将成功解决错误。

回答by hstdt

Maybe you have just cleaned Logsdirectory...Then you can try this:

也许你刚刚清理了Logs目录......然后你可以试试这个:

sudo chmod 777 /Users/[YourUserName]/Library/Logs 

回答by Rahul Patel

I was also facing the same issue tried cleaning and restarting XCODE didn't worked for me,

我也面临同样的问题,尝试清理和重新启动 XCODE 对我不起作用,

so I removed xcassets and added the image sets again one by one, and that worked for me.

所以我删除了 xcassets 并一个一个地添加了图像集,这对我有用。

回答by Varuna

Had to add a step Airman00's answer.

不得不添加一个步骤 Airman00 的答案。

  1. List item
  2. Clean the Project
  3. Quit Xcode
  4. Delete derived data
  5. Reopen Xcode Build
  1. 项目清单
  2. 清理项目
  3. 退出 Xcode
  4. 删除派生数据
  5. 重新打开 Xcode 构建

That got it working for some reason...

出于某种原因,这让它起作用了......

回答by Carlos Jiménez

Update to XCode 7.1.1 from 7.1 solved my problem.

从 7.1 更新到 XCode 7.1.1 解决了我的问题。

With XCode 7.1 I used Airman00's solution but suddenly it stop working.

在 XCode 7.1 中,我使用了 Airman00 的解决方案,但突然停止工作。

Hope it helps!

希望能帮助到你!