Xcode安装第三方插件
1.安装update_xcode_plugins
sudo gem install update_xcode_plugins
2.去除Xcode签名
update_xcode_plugins --unsign
3.安装Xcode插件管理工具 Alcatraz
curl -fsSL https://raw.github.com/alcatraz/Alcatraz/master/Scripts/install.sh | sh
4.更新插件
update_xcode_plugins
5.重新打开Xcode

之后就可以安装你想要的插件了
6.恢复Xcode签名(没有签名的Xcode无法上架应用)
update_xcode_plugins --restore
XcodeColors + CocoaLumberjack输出有颜色的Log
1 .pch配置
#import <CocoaLumberjack/CocoaLumberjack.h>
static const DDLogLevel ddLogLevel = DDLogLevelWarning; // 日志等级
2 apple deapplede
// Configure CocoaLumberjack
[DDLog addLogger:[DDTTYLogger sharedInstance]];
// Enable Colors
setenv("XcodeColors", "YES", 0);
[[DDTTYLogger sharedInstance] setColorsEnabled:YES];
// Initialize File Logger
DDFileLogger *fileLogger = [[DDFileLogger alloc] init];
// Configure File Logger
[fileLogger setMaximumFileSize:(1024 * 1024)];
[fileLogger setRollingFrequency:(3600.0 * 24.0)];
[[fileLogger logFileManager] setMaximumNumberOfLogFiles:7];
[DDLog addLogger:fileLogger];
//show log file location, not necessary
DDLogFileInfo *ts =[fileLogger currentLogFileInfo];
DDLogInfo(@"%@", ts);
DDLogError(@"This is an error."); //错误信息
DDLogWarn(@"This is a warning.");//警告信息
DDLogInfo(@"This is just a message.");//通知信息
DDLogVerbose(@"This is a verbose message."); //详细信息


网友评论