xcpretty:增加xcodebuild输出的可读性

xcodebuild的输出阅读起来不是太直观,使用xcpretty可以解决这个问题

$ xcodebuild -workspace Live.xcworkspace -scheme Live -archivePath ~/Desktop/Live archive | xcpretty

▸ Building Live/XASDKBundle [Release]
▸ Check Dependencies
▸ Copying Info.plist
▸ Compiling XALiveShopEffectVC.xib
▸ Compiling XALiveEditHeadVC.xib
▸ Compiling XALiveHomeFooterView.xib
▸ Compiling XALiveEffectCvCell.xib
▸ Compiling XALiveMessageAlertCell.xib
▸ Compiling XALiveSaveHeadVC.xib

没有使用xcpretty输出的结果

$ xcodebuild -workspace Live.xcworkspace -scheme Live -archivePath ~/Desktop/Live archive          

User defaults from command line:
    IDEArchivePathOverride = /Users/wangxuefeng/Desktop/Live

=== BUILD TARGET Pods-XAIM OF PROJECT Pods WITH CONFIGURATION Release ===

Check dependencies

Write auxiliary files
write-file /Users/wangxuefeng/Library/Developer/Xcode/DerivedData/Live-greuyswifpotzwdlcbcussolizwh/Build/Intermediates/ArchiveIntermediates/Live/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Pods-XAIM.build/Pods-XAIM-generated-files.hmap
write-file /Users/wangxuefeng/Library/Developer/Xcode/DerivedData/Live-greuyswifpotzwdlcbcussolizwh/Build/Intermediates/ArchiveIntermediates/Live/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Pods-XAIM.build/Pods-XAIM-project-headers.hmap
write-file /Users/wangxuefeng/Library/Developer/Xcode/DerivedData/Live-greuyswifpotzwdlcbcussolizwh/Build/Intermediates/ArchiveIntermediates/Live/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Pods-XAIM.build/Pods-XAIM-all-non-framework-target-headers.hmap
write-file /Users/wangxuefeng/Library/Developer/Xcode/DerivedData/Live-greuyswifpotzwdlcbcussolizwh/Build/Intermediates/ArchiveIntermediates/Live/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Pods-XAIM.build/Pods-XAIM-own-target-headers.hmap

安装

$ sudo gem install xcpretty

ERROR:  While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/rougify

安装cocoapods也可能遇到的问题一样,解决方法也一样

$ sudo gem install -n /usr/local/bin xcpretty

Successfully installed rouge-2.0.7
Fetching: xcpretty-0.2.8.gem (100%)
Successfully installed xcpretty-0.2.8
Parsing documentation for rouge-2.0.7
Installing ri documentation for rouge-2.0.7
Parsing documentation for xcpretty-0.2.8
Installing ri documentation for xcpretty-0.2.8
2 gems installed

你可能感兴趣的:(xcpretty:增加xcodebuild输出的可读性)