7

I tried to create new Xcode 8 Source Editor Extension, but for some reason basic examples are always disabled(screenshot) for me and I am not sure whether it is some bug with beta version or I am missing something.

So I created almost basic extension like from WWDC video and sample tutorials, and for some reason this menu item is always disabled.

I ran sudo /usr/libexec/xpccachectl in Terminal and reboot the Mac. I am using 10.11.5 Mac OS.

Also I tested working examples from github like this (Screenshot 2) or this but they are also disabled.

**

So my questions is: Is that some sort of bug as Xcode 8 is still in beta or some configuration is missing from my side to make extension work?

enter image description here

enter image description here

Kara
  • 6,115
  • 16
  • 50
  • 57
B.S.
  • 21,660
  • 14
  • 87
  • 109

1 Answers1

2

I had the same problem and I think it's just a bug.

This worked in my case: restart Xcode 8, build/run the container app target before, and then run the Xcode extension target.

andreacipriani
  • 2,519
  • 26
  • 23
  • I also experienced this. I had to found that this also happens when the extension hasn't loaded yet. Adding a log to extensionDidFinishLaunching helped see when it should be available. – joels Oct 31 '16 at 03:17