Klaas
Klaas

Reputation: 22763

How can I configure the iOS Simulator application directory?

Is there a way to configure the iOS Simulator application directory?

I'm using Xcode 4.3 and it's currently under

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

When I run an app in Xcode it gets copied to a sub-directory:

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

"Documents", "Library" and "tmp" dirs are next to the the app itself. Any file access that I'm doing within my app is using this directory as root.

The reason for asking this is that I want to keep the files on an SSD that is not my startup volume. So any hard links won't work either.

I haven't looked at Xcode 4.4 or 4.5 yet, but I could use those as well.

UPDATE:

Actually soft links work:

First delete

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

Then create the soft link

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

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

Upvotes: 5

Views: 1699

Answers (2)

john.k.doe
john.k.doe

Reputation: 7563

you can use soft-links to link onto other volumes, so long as those volumes always end up in the same place, and you could also use a soft-link to link to someplace that you then configure whenever your SSD is attached.

Upvotes: 3

Artem Oboturov
Artem Oboturov

Reputation: 4385

I think you can use a parameter to launch Simulator. See this SO answer: https://stackoverflow.com/a/4894178/801466.

Upvotes: 0

Related Questions