xcode升級到6.3.2後找不到Alcatraz的bug

問題說明

http://stackoverflow.com/questions/30361228/why-are-my-xcode-plugins-such-as-clang-format-installed-with-alcatraz-no-longe/30370283#30370283


解決代碼如下

https://github.com/supermarin/Alcatraz/commit/252f0e1e91353c372805b25b5dedb18a686fc908

1
2
3
4
5
6
7
8
9
10
- (id)initWithBundle:(NSBundle *)plugin {
     if (self = [super init]) {
         self.bundle = plugin;
-        [self createMenuItem];
+        dispatch_async(dispatch_get_main_queue(), ^{
+            [self createMenuItem];
+        });
         [self updateAlcatraz];
     }
     return self;


下載github上的代碼自己編譯一次就行了,有可能需要先刪除插件重新編譯。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章