macoscope / CodePilot

Code Pilot is an Xcode plugin which lets you woosh through your code and save a lot (and we mean a *lot*) of your time.
http://codepilot.cc
Apache License 2.0
1.33k stars 205 forks source link

CodePilot menu item doesn't install after restargin Xcode 6.3.2/6.4b3 #40

Closed bubski closed 9 years ago

bubski commented 9 years ago
20/05/15 13:38:42,132 Xcode[1574]: WARNING: Failed to load plugin at path: "/Users/bartekchlebek/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin", skipping. Error: Error Domain=NSCocoaErrorDomain Code=3588 "The bundle “CodePilot3” couldn’t be loaded." (dlopen(/Users/bartekchlebek/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin/Contents/MacOS/CodePilot3, 265): Symbol not found: _OBJC_CLASS_$_IDESourceCodeDocument
  Referenced from: /Users/bartekchlebek/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin/Contents/MacOS/CodePilot3
  Expected in: flat namespace
 in /Users/bartekchlebek/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin/Contents/MacOS/CodePilot3) UserInfo=0x7f850be00ca0 {NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/bartekchlebek/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin/Contents/MacOS/CodePilot3, NSDebugDescription=dlopen(/Users/bartekchlebek/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin/Contents/MacOS/CodePilot3, 265): Symbol not found: _OBJC_CLASS_$_IDESourceCodeDocument
  Referenced from: /Users/bartekchlebek/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin/Contents/MacOS/CodePilot3
  Expected in: flat namespace
 in /Users/bartekchlebek/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin/Contents/MacOS/CodePilot3, NSBundlePath=/Users/bartekchlebek/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin, NSLocalizedDescription=The bundle “CodePilot3” couldn’t be loaded.}
bubski commented 9 years ago

The only workaround I've come up so far for this is #41 I suppose there might be a better way, but for now that will help those encountering this problem.

bubski commented 9 years ago

It's weird that during the first launch it works but after restarting Xcode it stops working.

Xcode 6.3.2 and 6.4b3 have that dialogue about a 3rd party bundle which appears during the first launch.

screen shot 2015-05-20 at 11 58 28

I guess the plugin loading flow has changed because of that and causes this issue somehow.

danipralea commented 9 years ago

I have the same behaviour as @bartekchlebek. It also loads for the first time for me as well, but fails to do so for the subsequent launches. Seems like all Xcode updates are killing CodePilot

danipralea commented 9 years ago

Works now. Sweet !

bubski commented 9 years ago

Awesome! Thanks for feedback 👍🏼