I've made a rather horrid work around for now so I can run UITests against different installed data using a shell script, xcodebuild and simctl.
Basically I create a simulator, I run xcodebuild test with a dummy test run to install the app on the simulator, use simctl get_app_container to get the apps data container, then using cp to copy individual directories from my xcappdata into their equivalents in the data container. Finally I run xcodebuild test with my actual test plan.
This is very slow, and the shell script seems to frequently hang for a while after completing a test run.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: