ios – xcodebuild UITests screenshots location

Spread the love


I’ve UITests which check my iOS app and make screenshots for launch on AppStore.
I run check from command line:

xcodebuild check -workspace 'MyProject.xcworkspace' -scheme 'MyProject' -destination 'platform=iOS Simulator,title=iPhone 15 Plus,OS=17.0.1' -destination 'platform=iOS Simulator,title=iPhone 13 mini,OS=17.0.1' -only-testing MyProjectUITests/MyProjectScreenshots -derivedDataPath '/Volumes/initiatives/apple/MyProject/Screens'

After checks I get on the finish or command line output

Check session outcomes, code protection, and logs:
    /Volumes/initiatives/apple/MyProject/Screens/Logs/Check/Check-MyProject-2023.11.18_15-18-46-+0200.xcresult

** TEST SUCCEEDED **

Additionally I can open this .xcresult file in Xcode and see screenshots.
However for saving screenshots to launch foldter I want decide one after the other every screenshot (20 objects), press “Save Attachment…”, choose folder and many others..

Is it potential to make as easie?
After I open Check-MyProject-2023.11.18_15-18-46-+0200.xcresult as folder I see following folders/information:

Knowledge
Information.plist
database.sqlite3

Folder Knowledge accommodates “information” and “refs” information and no photographs:

18 15:22 information.0~-AW7Z5eonr7ERKZzv4X-Eph5uLT_TawiB0QLz7hnFAfp_BwyE4285rJmbNtva6Z5tzaulJuShzDqXY-OcNcHQg==
information.0~-HotSyqpnQiGSzETRwLexeJP3RMXgFhG7vUYM6ahDEnyAmKf68vfXR25yFuj3FeGVwiMliSwoUylc_TOnsuYEA==
information.0~-Mve5kAIcP1KcJq5B-t6HkBcR0c8mCyOx7eMi8rvCApPNI6z36t5B3a_yOJjawLCghbFqBHI37Vx5cfSAq54Gg==
information.0~-P9OGsSQOe7_u3hVgyGduS-LOXQ1xojIfzt69vuAwrYiBP5KbS558nLBzCK3raQZRkvnBIPonGY6wdIkdzZ1JQ==
...
refs.0~xINxxF87f4pfxMcjrD5osQ34R9U3y_wWEMQZVAFNlIdcl0mSryw_7ARteAgn3DTZjUhsSTmcrv06EfPO89xgyQ==
refs.0~zkldkf1kBSNG-lugSYFlfgDthWtcYxAkKLAHgElOwjuDWuYNob4d5exYYkQtlKTmZqy73obtCCHgA6BJ_RSpOA==

I exploit final Xcode 15.0.1.

Please recommendation how save all screenshots to at least one folder or the place are positioned screenshots information for coping them for AppStore?

Leave a Reply

Your email address will not be published. Required fields are marked *