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輸出的結(jié)果

$ 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
最后編輯于
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容