Question

I'm working through Big Nerd Ranch's iOS book, 4th Edition. I ran into Core Data; Cocoa error 134100. I need to delete files from the local hard drive that the simulator references. I'm unable to find the directory where the files I need to delete are located.

Any assistance with this maddening task would be greatly appreciated.

Was it helpful?

Solution 2

Simulator apps are kept in the user’s Application Support directory:

~/Library/Application Support/iPhone Simulator/iOSVersionNumber/Applications/magicString
Where iOSVersionNumber is something like 7.1 or 7.1-64 and magicString is a GUID in a form similar to: 7DBA2C5B-51CB-4229-8AC2-B0BEFBA947F0.

To access, open a Finder window and then ShiftCommandG and enter: ~/Library/Application Support/iPhone Simulator, then drill down as necessary.

An example from my Mac:
~/Library/Application Support/iPhone Simulator/7.1-64/Applications/75BA5125-9D4A-4090-9DBD-6B630CD5971E/Comics.app

OTHER TIPS

You can try to delete the app from the Simulator: just hit the Home button (Cmd+Shift+H) and then click and hold the app icon - then you can delete it. When it is done - build your app again.

The apps are installed in the simulator at this path:

/Users/<username>/Library/Application Support/iPhone Simulator/User/Applications

You may remove an application or all of the data of the application from this path

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top