omz/ColorSense-for-Xcode

Can't "activate" ColorSense

sbandol opened this issue · 17 comments

Hi,

I just installed ColorSense plugin.
I didn't receive any permissions denied error (and the plugin was successfully copied to ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins), however when I select/write a UIColor, nothing happens.

Is there any service that should be activated?

Thanks,
StaS

omz commented

Do you see the additional items in the "Edit" menu?

I think there is nothing additional to the standart "Edit" menu.
Screenshot: https://dl.dropbox.com/u/26066761/Screen%20Shot%202012-09-10%20at%2012.29.20.png

Same issue here using OS X 10.7.4 and Xcode 4.4.1

omz commented

Looks like the plugin isn't loaded then. Do you see anything in the logs during Xcode launch?

10.09.12 12:41:00,805 Xcode: Error loading /Users/felix/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin/Contents/MacOS/OMColorSense: dlopen(/Users/felix/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin/Contents/MacOS/OMColorSense, 265): Symbol not found: OBJC_CLASS$_NSObject
Referenced from: /Users/felix/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin/Contents/MacOS/OMColorSense
Expected in: /usr/lib/libobjc.A.dylib
in /Users/felix/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin/Contents/MacOS/OMColorSense
10.09.12 12:41:00,806 Xcode: WARNING: Failed to load plugin at: /Users/felix/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin, skipping. Could not load bundle.

10/09/12 12:40:55,071 Xcode: Error loading /Users/xxx/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin/Contents/MacOS/OMColorSense: dlopen(/Users/xxx/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin/Contents/MacOS/OMColorSense, 265): Symbol not found: OBJC_CLASS$_NSObject
Referenced from: /Users/xxx/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin/Contents/MacOS/OMColorSense
Expected in: /usr/lib/libobjc.A.dylib
in /Users/xxx/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin/Contents/MacOS/OMColorSense

Using 10.7.4, Xcode 4.4.1

omz commented

Hm, not sure, haven't tested on 10.7, any warnings while building?

No warnings or other issues.

I'm also having this same problem, OS X 10.7.4, Xcode 4.4.1.

omz commented

This really seems to be related to 10.7. I don't have a working Lion installation to test this right now.

I've uploaded a pre-built binary here: https://github.com/omz/ColorSense-for-Xcode/downloads

Could you check if that works for you?

Pre-built binary doesn't work for me.

omz commented

Okay, I kind of expected that. :(
I think I'll add a note in the readme that it requires 10.8, can't think of anything else right now.

It's working on 10.7.4 with Xcode 4.3.3 and 4.5DP4 here.

I found that if I changed the deployment target to 10.7 and linked to the library libobjc.A.dylib that it is working for me in 10.7.x 4.5DP4

Setting the Deployment Target to 10.7 fixed it for me too. No need to change any linked frameworks. Working now on OS X 10.7.4, Xcode 4.4.1.

omz commented

Ah, that makes sense. I've changed the deployment target to 10.7 now.
Could the others check if it works, so I can close this?

Yes, working for me now. Thanks!