Closed lucianoks closed 9 years ago
I'm not sure what happened but found a reference from here. Maybe you could try:
sudo xcodebuild -license.
I have the same issue with the Xcode 7.0 7A220. It was broken for me on previous versions, then I have built it myself from github and it was ok, but now it crashes my mac when it opens.
Try build it from github and run that command before open Xcode. I think the OS El Capitan is the root cause.
Nope, MCLog is. Try commenting out 'hookDVTTextStorage' and the plugin then works.
@guidedways - Tried your suggestion and indeed than Xcode doesn't crash, however it seems MCLog is not working correctly. When I enter a phrase it only shows me some of the line containing that phrase. When entering a regular expression like /^((?!34475).)*$/s (show me all lines not containing 34475) it doesn't show me anything, while there are log entries not containing that phrase. Could this be the result of commenting out the hookDVTTextStorage? Tried going through the code, but not familiar with any of the methods and classes used in there.
Actually you can uncomment that method and then only comment out the line:
OriginalFixAttributesInRangeIMP(self, _cmd, range);
This alone will stop it from crashing. As far as I can tell, this method is simply there to change the color of the text. What you're reporting may be a separate issue altogether and may need to be fixed / handled correctly. I haven't gone through the code extensively myself as for now I simply need it to do simpler things. I suspect it may have more bugs though.
Thanks for the quick reply! Tried this too, but then xcode crashes immediately on startup, while if I build unchanged it crashes right after I run my app and the console starts filling up. Anyway, I'll log this as a separate issue. Thanks again for the quick reply and suggestions. Btw. My problem is that I have a 3rd party framework that logs extensively to the console, making debugging quite difficult. Any ideas on how to block console messages for that specific framework?
That's the sort of thing why I started looking for a similar plugin :D Sadly there seems to be no way to do this otherwise. We could of course always write to Apple and ask them to make this a built in feature.
I'm gonna do that :-D Seems an easy enough feature to include. Just expand the search feature they already have.
Maybe this method is removed from Xcode 7. But MCLog needs this method to work. I'll try to find the new method in Xcode 7
发自我的 iPhone
在 2015年10月9日,上午12:46,Guided Ways Technologies Ltd. notifications@github.com 写道:
Actually you can uncomment that method and then only comment out the line:
OriginalFixAttributesInRangeIMP(self, _cmd, range);
This alone will stop it from crashing. As far as I can tell, this method is simply there to change the color of the text. What you're reporting may be a separate issue altogether and may need to be fixed / handled correctly. I haven't gone through the code extensively myself as for now I simply need it to do simpler things. I suspect it may have more bugs though.
— Reply to this email directly or view it on GitHub.
This would still be Crashing Xcode7.1 at startup (7B91b)
Xcode crashes when starts (only when MCLog folder is present on Plug-ins). Running on El Capitain, 10.11 (15A282a) Here's the log: