How to set up iOS Simulator app catalog?

Is there a way to customize the iOS Simulator app directory?

I am using Xcode 4.3 and currently under

/Users/<Username>/Library/Application Support/iPhone Simulator/5.1/Applications/ 

When I run the application in Xcode, it is copied to a subdirectory:

 /Users/<Username>/Library/Application Support/iPhone Simulator/5.1/Applications/<APP-UUID>/<AppName>.app 

"Documents", "Library" and "tmp" are next to the application itself. Any file access that I make in my application uses this directory as root.

The reason for this is that I want to store files on an SSD, which is not my boot volume. Therefore, any hard links will not work.

I haven't watched Xcode 4.4 or 4.5 yet, but I could use them as well.

UPDATE:

Soft links actually work:

Delete first

 rm -R /Users/<Username>/Library/Application Support/iPhone Simulator/5.1/Applications/ 

Then create a soft link

 ln -s /Volumes/<YourSSDVolume>/Applications/ /Users/<Username>/Library/Application Support/iPhone Simulator/5.1/Applications/ 

Thanks to John.K.Doe for making me try again;)

+4
source share
2 answers

you can use soft links to link to other volumes if these volumes always appear in the same place, and you can also use soft links to link to the place that you then configure whenever your SSD is connected.

+2
source

I think you can use the parameter to run Simulator. See this answer SO: fooobar.com/questions/88150 / ....

0
source

All Articles