简体   繁体   English

Xcode 4.5.2在Mac OS X Mountain Lion上不断崩溃?

[英]Xcode 4.5.2 keeps crashing on Mac OS X Mountain Lion?

I have been using Xcode with mac os x lion and I kept getting an error when trying to test my app on my ios device. 我一直在使用Xcode与mac os x lion,我在ios设备上测试我的应用程序时遇到了错误。 I formatted my computer and upgraded to mountain lion and revoked all the apple developer certificates and provisions and started from scratch. 我格式化了我的电脑并升级到了山狮并取消了所有的苹果开发者证书和规定,并从头开始。

Now I do not get an error anymore but when I click run Xcode crashes. 现在我不再出现错误,但是当我点击运行Xcode崩溃时。 I have seen other people having the same issue. 我见过其他人有同样的问题。 I tried installing the tools in Xcode and reinstalling Xcode but nothing seems to work. 我尝试在Xcode中安装工具并重新安装Xcode,但似乎没有任何工作。 I even tried other apps. 我甚至试过其他应用程序。 Xcode even crashes when I look at the preferences or just randomly but it is unusable. 当我查看首选项时,Xcode甚至会崩溃,或者只是随机地崩溃,但它无法使用。 I have tried what people have suggested but I think maybe its the update to Mountain Lion. 我尝试了人们的建议,但我想也许是对Mountain Lion的更新。

Anybody have any thoughts on what I can do to fix it ? 我有什么想法可以解决它吗? Thanks guys and Ill post the Xcode error below. 谢谢你们和Ill发布下面的Xcode错误。


Process:         Xcode [3082]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         4.5.2 (1847)
Build Info:      IDEApplication-1847000000000000~5
App Item ID:     497799835
App External ID: 11823664
Code Type:       X86-64 (Native)
Parent Process:  launchd [120]
User ID:         501

Date/Time:       2012-11-11 23:59:26.948 -0500
OS Version:      Mac OS X 10.8 (12A239)
Report Version:  10

Interval Since Last Report:          12182 sec
Crashes Since Last Report:           7
Per-App Interval Since Last Report:  2713 sec
Per-App Crashes Since Last Report:   7
Anonymous UUID:                      08010D4F-F690-41D3-BFD3-D1ECE072975C

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff50fe0ff8

VM Regions Near 0x7fff50fe0ff8:
    MALLOC_SMALL           00007fb59e800000-00007fb59f800000 [ 16.0M] rw-/rwx SM=PRV  
--> STACK GUARD            00007fff4d7e1000-00007fff50fe1000 [ 56.0M] ---/rwx SM=NUL  stack guard for thread 0
    Stack                  00007fff50fe1000-00007fff517e1000 [ 8192K] rw-/rwx SM=COW  thread 0

Application Specific Information:
ProductBuildVersion: 4G2008a
objc[3082]: garbage collection is ON
Performing @selector(performRunAction:) from sender IDERunPauseContinueToolbarButton 0x4023116a0

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration    0x000000011621a96e -[NSClipView(IBWorkaround12332156) ibSwizzledNSClipViewWorkaround12332156UpdateConstraints] + 21
1   com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration    0x000000011621a9fc -[NSClipView(IBWorkaround12332156) ibSwizzledNSClipViewWorkaround12332156UpdateConstraints] + 163
2   com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration    0x000000011621a9fc -[NSClipView(IBWorkaround12332156) ibSwizzledNSClipViewWorkaround12332156UpdateConstraints] + 163
3   com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration    0x000000011621a9fc -[NSClipView(IBWorkaround12332156) ibSwizzledNSClipViewWorkaround12332156UpdateConstraints] + 163
4   com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration    0x000000011621a9fc -[NSClipView(IBWorkaround12332156) ibSwizzledNSClipViewWorkaround12332156UpdateConstraints] + 163
5   com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration

I had a problem where multiple instances of XCode were running in the background, causing XCode crashes. 我遇到一个问题,其中多个XCode实例在后台运行,导致XCode崩溃。 I'm not sure if this will help or not, but you can try the following in a terminal. 我不确定这是否有帮助,但您可以在终端中尝试以下操作。

alias findp="ps -axww | grep $*"

this is just some shorthand. 这只是一些简写。

see what this does. 看看这是做什么的。

findp Xcode

If you have a huge list of instances returning for that call, when you are not actually running Xcode, then it means you have a heap of orphaned background xcode processes. 如果您为该调用返回了大量实例,那么当您实际上没有运行Xcode时,则意味着您有一堆孤立的后台xcode进程。 The simulator will also hold onto xcode instances, so you'll need to close that as well. 模拟器也将保留在xcode实例上,因此您也需要关闭它。

Anyway, if you have the problem i had, you'll see repsones along the lines of 无论如何,如果你有我遇到的问题,你会看到跟随的问题

 7645 ??         0:00.12 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/System/Library/Frameworks/Accounts.framework/accountsd

you can then kill these with 你可以用它来杀死这些

kill -9 7645

Not sure if that will help you or not, but it has saved me many times when xcode has played silly buggers with me. 不确定这是否会对你有所帮助,但是当xcode和我一起玩傻猫时,它已经多次保存了我。

Okay, so I know it isn't the ideal solution, but what I found to work for me was to download the iOS 5.0 and 5.1 SDKs to run testing through the simulator (yes, I know this creates an issue with not being able to run tests through the current simulator...) but I can run my app just fine on my provisioned iPhone device for testing in iOS 6.0 好吧,所以我知道它不是理想的解决方案,但我发现为我工作的是下载iOS 5.0和5.1 SDK以通过模拟器运行测试(是的,我知道这会产生一个问题,因为它无法通过当前的模拟器运行测试...)但我可以在我配置的iPhone设备上运行我的应用程序,以便在iOS 6.0中进行测试

It seems that the 6.0 simulator is the culprit in causing this particular crash. 似乎6.0模拟器是造成这种特殊崩溃的罪魁祸首。 Also, if you have the same setup as I do, then you will need to be aware that you will need to stop the application before attempting to run it again, or it will result in a crash. 此外,如果您具有与我相同的设置,则需要注意在尝试再次运行之前需要停止应用程序,否则将导致崩溃。 Also, if you are running a simulator (5.1 or 5.0) then you will need to be sure that you not only stop your application, but close the simulator completely down. 此外,如果您正在运行模拟器(5.1或5.0),那么您需要确保不仅停止应用程序,而且完全关闭模拟器。 Otherwise, this may result in another crash. 否则,这可能会导致另一次崩溃。

All of the failures that I have encountered through my current environment's installation of XCode 4.5.2 have resulted in the exact same error message you received above. 我通过当前环境安装XCode 4.5.2遇到的所有故障都导致上面收到的完全相同的错误消息。

Hope this helps! 希望这可以帮助!

-d3v1lman1337 -d3v1lman1337

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM