// 解决插件失效的办法
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
/Users/(mymac)/Library/Application Support/Developer/Shared/Xcode/Plug-ins
iMac开机静音
sudo nvram SystemAudioVolume=
开机恢复声音
sudo nvram -d SystemAudioVolume
iOS开发 判断各个设备型号(放大模式和标准模式)
//#define IS_OS_8_OR_LATER ([[[ UIDevice currentDevice ] systemVersion ] floatValue ] >= 8.0 )
//#define IS_IPAD ( UI_USER_INTERFACE_IDIOM () == UIUserInterfaceIdiomPad )
//#define IS_IPHONE ( UI_USER_INTERFACE_IDIOM () == UIUserInterfaceIdiomPhone )
//#define IS_IPHONE_5 ( IS_IPHONE && ([[ UIScreen mainScreen ] bounds ]. size . height == 568.0 ) && (( IS_OS_8_OR_LATER && [ UIScreen mainScreen ]. nativeScale == [ UIScreen mainScreen ]. scale ) || ! IS_OS_8_OR_LATER ))
//#define IS_STANDARD_IPHONE_6 ( IS_IPHONE && [[ UIScreen mainScreen ] bounds ]. size . height == 667.0 && IS_OS_8_OR_LATER && [ UIScreen mainScreen ]. nativeScale == [ UIScreen mainScreen ]. scale )
//#define IS_ZOOMED_IPHONE_6 ( IS_IPHONE && [[ UIScreen mainScreen ] bounds ]. size . height == 568.0 && IS_OS_8_OR_LATER && [ UIScreen mainScreen ]. nativeScale > [ UIScreen mainScreen ]. scale )
//#define IS_STANDARD_IPHONE_6_PLUS ( IS_IPHONE && [[ UIScreen mainScreen ] bounds ]. size . height == 736.0 )
//#define IS_ZOOMED_IPHONE_6_PLUS ( IS_IPHONE && [[ UIScreen mainScreen ] bounds ]. size . height == 667.0 && IS_OS_8_OR_LATER && [ UIScreen mainScreen ]. nativeScale < [ UIScreen mainScreen ]. scale )
// /
解决cocoaPod更新慢的问题:
pod update --verbose --no-repo-update
mac显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -bool true
重启finder
不显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -bool false
重启finder