Skip to content

xcode8 is crash #86

@proflli

Description

@proflli

After installing the software, open the Xcode8, enter any letter then Xcode8 crash

Process: Xcode [875]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 8.0 (11246)
Build Info: IDEFrameworks-11246000000000000~3
App Item ID: 497799835
App External ID: 818744938
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [875]
User ID: 501

Date/Time: 2016-09-27 10:21:09.545 +0800
OS Version: Mac OS X 10.12 (16A323)
Report Version: 12
Anonymous UUID: F636BCDC-EEBA-7135-7E28-F874D73FEDD8

Time Awake Since Boot: 460 seconds

System Integrity Protection: disabled

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

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
ProductBuildVersion: 8A218a
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Error getting value for key 'strategyClass' of extension 'KSImageNamed.CompletionStrategy.ImageNamed' in plug-in 'com.ksuther.KSImageNamed'
UserInfo: {
NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.ksuther.KSImageNamed, DVTPlugInExecutablePathErrorKey=/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed, 0): no suitable image found. Did find:\n\t/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed: code signing blocked mmap() of '/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed', NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin, NSLocalizedFailureReason=The plug-in \U201ccom.ksuther.KSImageNamed\U201d at path \U201c/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin\U201d could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7fab3efe6450 {Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed): no suitable image found. Did find:\n\t/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed: code signing blocked mmap() of '/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed'" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed, NSDebugDescription=dlopen_preflight(/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed): no suitable image found. Did find:\n\t/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed: code signing blocked mmap() of '/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin/Contents/MacOS/KSImageNamed', NSBundlePath=/Users/proflli/Library/Developer/Xcode/Plug-ins/KSImageNamed.ideplugin, NSLocalizedDescription=The bundle \U201cKSImageNamed\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.}}}";
}

Activity

ksuther

ksuther commented on Sep 27, 2016

@ksuther
Owner

Based on that error is seems like Xcode is having trouble loading the bundle.

yuanlingqi

yuanlingqi commented on Sep 27, 2016

@yuanlingqi

I also encountered this problem,any help?

proflli

proflli commented on Sep 28, 2016

@proflli
Author

How to solve this bug?

ksuther

ksuther commented on Sep 28, 2016

@ksuther
Owner

I'm going to need some help reproducing this, otherwise it's not going to get fixed.

jinke5245

jinke5245 commented on Sep 28, 2016

@jinke5245

I also got this bug at Xcode 8, and got crash when i was coding.
I remove this plugin at ~/Library/Developer/Xcode/Plug-ins/.

HugSea

HugSea commented on Sep 28, 2016

@HugSea

I also crash, but I can't find KSImageNamed plugin at ~/Library/Developer/Xcode/Plug-ins/

jinke5245

jinke5245 commented on Sep 29, 2016

@jinke5245

@HugSea
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins.
Try to find at this file path.

proflli

proflli commented on Sep 29, 2016

@proflli
Author

I have removed this plugins, and wait for the update.

lzzhoujielun

lzzhoujielun commented on Oct 19, 2016

@lzzhoujielun

I crash too, I will reinstall the xcode . In xcode8 where set photo tip?

ivanyang1984

ivanyang1984 commented on Oct 21, 2016

@ivanyang1984

@jinke5245 your solution works!

xmzqhl

xmzqhl commented on Oct 27, 2016

@xmzqhl

I meet the same error,Can anyone help?

proflli

proflli commented on Oct 27, 2016

@proflli
Author

remove it! @wybflb

xmzqhl

xmzqhl commented on Oct 27, 2016

@xmzqhl

@proflli 使用OC语言,在Xcode8上,有其他库可以替换么?

lyb5834

lyb5834 commented on Oct 31, 2016

@lyb5834

I carsh too,I have removed this plugins, and wait for the update.Can anyone tell me when it updated?

gblazex

gblazex commented on Nov 4, 2016

@gblazex

crashed for me too in Xcode 8.1

After doing what the README says it now doesn't crash but doesn't work either (no imageNamed suggestions)

Important: Old versions of KSImageNamed were installed in ~/Library/Developer/Application Support/Developer/Shared/Xcode/Plug-ins. Make sure to remove KSImageNamed.xcplugin from there before installing the new one.

ame017

ame017 commented on Nov 14, 2016

@ame017

Look,i have the way to use on xcode8.0+ (8.1 8.2also worked)

1.clean your xcode

make sure your xcode is pure

2.delete all plug-ins(not necessary step)

location of plug-ins is:

~/Library/Developer/Xcode/Plug-ins
~/Library/Developer/Application Support/Developer/Shared/Xcode/Plug-ins

just delete all files in above two locations of your mac
you can also delete the folder of these locations(recommend)

(delete all plug-ins is the way to make sure Xcode do not crash.Not necessary step)

3.resign your Xcode(important step)

use this way to resign your Xcode
https://github.com/XVimProject/XVim/blob/master/INSTALL_Xcode8.md
(thanks to the author of XVim)

4.download the KSImageNamed zip file

download the KSImageNamed zip file and open it's project in xcode

5.add uuid(important step)

if your Xcode version is supported(to know the support version,please look at the author's introduction) ,just run the project of KSImageNamed.

if your Xcode version is not supported(Newer than the highest supported version)
you must add your xcode's uuid to the KSImage's project so that the KSImageNamed can work

the way to add uuid is:
find a plist file in KSImageNamed's project which is named 'KSImageNamed-Info.plist'
add your xcode's uuid to array 'DVTPlugInCompatibilityUUIDs' and then run the project

How to get uuid?
use the under code in terminal
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

6.restart your xcode

close your xcode and restart.
it will show a alert
just choose loadbundle on the left.

7.it will work

enjoy : )

RondaHo

RondaHo commented on Nov 14, 2016

@RondaHo

@amestudio thanks ,it works for me ! for xcode 8.1
the important step is add your xcode's uuid to the KSImage's project, then build it.
after build , this path ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins may not show KSImageNamed plugin ,but do not worry, just restart xcode ,it will show loadbundle alert.
BTW, don't have to delete all plug-ins

strawnut

strawnut commented on Dec 20, 2016

@strawnut

If you has encountered xcode crash after update xcode(although that's minor version:8.2 -> 8.2.1), the mention of @amestudio will be helped.

casperSNSN

casperSNSN commented on Jan 4, 2017

@casperSNSN

I met the same problem,@jinke5245 your solution works!

xiky

xiky commented on Feb 22, 2017

@xiky

it's a nice plug-ins for iOS develoer, so hope you can continus to develop

ksuther

ksuther commented on Mar 29, 2017

@ksuther
Owner

Closing because this crash occurs when Xcode hasn't been unsigned or re-signed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ksuther@gblazex@ivanyang1984@xmzqhl@proflli

        Issue actions

          xcode8 is crash · Issue #86 · ksuther/KSImageNamed-Xcode