Title: Fastlane / Snapshot - how do I keep all debug / console logs?
Tags: ios;fastlane;fastlane-snapshot
Question: I'd like to review the contents of all the debug logs on all the devices I use in my fastlane snapshot ui test?
I'm looking for the debug messages that would also be generated using NSLog etc.
I found this output_simulator_logs flag in the documentation, but it doesn't seem to work. I also set namespace_log_files but this just seems to be for the build log.
Although I'm quite happy to achieve this using another fastlane tool or maybe a different tool?


Here is another answer: If you pass in result_bundle: true should should get some test_result bundles. In those bundles, you'll get all the logs that you're looking for. Not that *.xcactivitylog files are actually gzip'd text files.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2018:00:08/02/18', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<ios><fastlane><fastlane-snapshot>', 'Title': 'Fastlane / Snapshot - how do I keep all debug / console logs?', 'ViewCount': 331, 'id': 51662555, 'user_AboutMe': '', 'user_AccountId': 203037.0, 'user_DisplayName': 'Jules', 'user_Reputation': 7408.0, 'user_Views': 3724.0, 'user_id': 450456.0}}