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