Posts

Post not yet marked as solved
5 Replies
4.3k Views
Hi There,In our project, we have some frameworks. We recently upgraded our systems to Xcode 9.4.GivenThe app is not installed on the iPhone 8, 11.4 simulator (Xcode 9.4)We run the tests from one of the frameworks.WhenThe tests need access to the documents folder.We check whether the folder does not exist, if not then we create the new one using:[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];ThenThe documents folder is created at path:file:///Users/mac/Library/Developer/CoreSimulator/Devices/59277EA5-68CE-452B-A41A-1A10476D5607/data/Documents/However, if the app is installed already and we repeat the steps above the documents folder is created at path:file:///Users/mac/Library/Developer/CoreSimulator/Devices/59277EA5-68CE-452B-A41A-1A10476D5607/data/Containers/Data/Application/3DEFB726-2B6E-47CB-A414-FA068725DC8D/Documents/This difference in the path is causing our tests to fail and eventually crash during CI stages.Is there something changed the way "Documents" folder is created in Xcode 9.4 and iOS 11.4 simulator?This was working perfectly with Xcode 9.2Any help would be greatly appreciated.
Posted
by pkant.
Last updated
.