iOS模拟器在ios8.2和Xcode 6.2中崩溃,“成功启动后无法查找#ID的进程ID”。

[英]iOS simulator crash in iOS 8.2 and Xcode 6.2 with “Failed to lookup the process ID of #ID after successful launch.”


iOS simulator crash in iOS 8.2 and Xcode 6.2 with an error below

iOS模拟器在ios8.2和Xcode 6.2中崩溃,错误如下

"Failed to lookup the process ID of xxx.xxx.xxx after successful launch. Perhaps it crashed after launch. No such process".

“未能查找xxxxx .xxx的进程ID。成功发射后xxx。也许它在发射后就坠毁了。没有这样的过程”。

And I cannot try to simulate my app.

我无法模拟我的应用。

I uploaded the image of error.

我上传了错误的图片。

http://imgur.com/2ayGys3

http://imgur.com/2ayGys3

It works normally when i use iOS 8.1 as a simulator. Regardless of the types of devices and types of projects, it will crash in iOS 8.2 simulator.

当我使用ios8.1作为模拟器时,它正常工作。不管设备类型和项目类型如何,它都会在iOS 8.2模拟器中崩溃。

The iOS simulator itself stands but has nothing on the screen.

iOS模拟器本身可以站立,但在屏幕上什么都没有。

A thing I care is that I changed my old macbook to new one and copy project files of Xcode from old to new.

我关心的一件事是,我把旧的macbook换成了新的,把Xcode的项目文件从旧的拷贝到新的。

Do you have any idea of this?..

你知道这个吗?

8 个解决方案

#1


28  

I had the same problem and solved it by force quitting and restarting Xcode and iOS Simulator.

我遇到了同样的问题,通过强制退出,重新启动Xcode和iOS模拟器解决了这个问题。

#2


10  

I had the same problem after I did a Mac update on xcode. I had the IOS simulator open during the install/update process. When I closed it, re-ran my compile, it re-opened the simulator and ran fine.

在我对xcode进行Mac更新后,我也遇到了同样的问题。我在安装/更新过程中打开了IOS模拟器。当我关闭它,重新运行我的编译,它重新打开模拟器并运行良好。

#3


3  

Simulator -> Reset Content and Settings did it for me.

>为我重置内容和设置。

#4


2  

In my case, all I needed to do was: Hardware -> Reboot on simulator.

在我的例子中,我所需要做的就是:在模拟器上重新启动硬件->。

#5


0  

I had the same problem, in my case the issue was :-

我也有同样的问题,我的问题是:-

Have set "Build active architectures : NO". Just changed it to YES and it worked.

设置“构建活动体系结构:不”。只要把它改成YES就行了。

#6


0  

Even i had the same issue when i upgraded Xcode to 6.3.2. I just did re launch of Xcode and iPhone Simulator and worked for me.

甚至当我把Xcode升级到6.3.2时也遇到了同样的问题。我刚刚重新启动了Xcode和iPhone模拟器,并为我工作。

#7


0  

I'm using xcode 7 beta 2 and am having the same problem.

我用的是xcode 7 beta 2,我也有同样的问题。

My take is that this is a random error probably due to a race condition.

我的观点是,这是一个随机错误,可能是由于比赛条件。

If I start xcode, then simply run my app over and over again, the error occurs randomly. Typically it will work 1 to 3 times in a row and then will fail 1 to 3 times in a row. The most consecutive failures I have seen so far is 3.

如果我启动xcode,然后简单地反复运行我的应用程序,错误会随机发生。通常情况下,它会连续工作1到3次,然后连续失败1到3次。到目前为止,我见过的最连续的失败是3次。

#8


0  

It might be the case that your app is not set up to build for the proper platform for simulator which are i.e. i386, x86_64.

可能你的应用程序没有建立为适合的模拟器平台,也就是i386, x86_64。

It happened to me as I built for arm64 platform, and try to hook it up to simulator; built via xcodebuild command line. But I think you might want to try because basically Xcode use that tool to build things up for you.

当我为arm64平台构建时,它发生在我身上,并试图将它连接到模拟器上;通过xcodebuild命令行构建。但我认为你可能想尝试一下,因为Xcode用这个工具为你做了一些事情。

So check the following in Build Setting of Xcode (along the line of text similar to this)

因此,在Xcode的构建设置中检查以下内容(沿着与此类似的文本行)

  • Only Build Active Arch => YES
  • 只构建活动Arch =>是的
  • Build architecture => i386 (or set to something else but not for mobile architecture)
  • 构建体系结构=> i386(或设置为其他类型,但不用于移动体系结构)

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2015/04/18/33beb6db28bb419dd910292c51db80f5.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号