instruments -w #udid# -v -t "Energy Diagnostics" -D Energy.trace xxx.ipa
instruments -w #udid# -v -t "Allocations" -D Allocations.trace xxx.ipa
instruments -w #udid# -v -t "Activity Monitor" -D Activity_Monitor.trace xxx.ipa
instruments -w #udid# -v -t "Network" -D Network.trace xxx.ipa
报错信息如下:
Instruments : Loading template 'file:///Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Network.tracetemplate'
Assertion failed: (_colorByNumber.size() > 0), function -[XRTheme _prepareColorsForLegacyUse], file /Library/Caches/com.apple.xbs/Sources/Instruments/Instruments-58157/Theming/XRTheme.mm, line 568.
Abort trap: 6
/Library/Caches/com.apple.xbs/Sources/Instruments/Instruments-58157/Theming/XRTheme.mm,这个文件不存在
iprofiler 指定终端执行也不行
但是,在 instruments 的 UI 界面,这些模板都能指定设备且正常抓取
几天了都没解决这个问题,网上资料实在太少,google了也找不到,官网就一句话带过,详见官网入口,还请大侠仗义相助!*