mothule / xc_launcher

Open .xcodeproj or .xcworkspace via Xcode on command line.
MIT License
1 stars 1 forks source link

シミュレータログの起動機能を追加 #1

Open mothule opened 4 years ago

mothule commented 4 years ago

ライブストリーム

$ xcrun simctl spawn booted log stream --level debug --predicate '(subsystem == "com.example.apple-samplecode.Paper-Company-Swift") && (category == "Model")'

保存ログ

$ xcrun simctl spawn booted log show --level debug --predicate '(subsystem == "com.example.apple-samplecode.Paper-Company-Swift") && (category == "Model")'

参考

https://developer.apple.com/library/archive/samplecode/Logging/Introduction/Intro.html#//apple_ref/doc/uid/TP40017510