I am building Cucumber/Calabash tests for my iOS app. I need to access my application data folder in simulator, to copy data to that folder.
I can get to this path:
~/Library/Developer/CoreSimulator/Devices/[DeviceID]/data/Containers/Data/Application/[NEED TO GET THIS AppID]
But I need to detect my [AppID] to access the right folder. Is there any method to get it from application name or bundle id via terminal or using some .sh scripts?
I have solved this with using script like this:
I am passing application data folder as path - this:
The script goes through the
.plistfiles in folders and tries to match my Application name