App crashes in XCode Simulator when I choose the same application name more than once

I noticed that when I build my application for the XCode simulator that it only works once with a unique application name. The second time I start an application in the simulator with the same name it crashes after start. The sim then returns to the springboard. I work around it by changing the appname everytime I build for the simulator. Like: appname_x where x is a unique value every build.

I would be a huge timesaver if this can be fixed. Cheers. [import]uid: 7443 topic_id: 1574 reply_id: 301574[/import]

Thanks OderWat. If I empty this folder rebuilding application with the same name works!
/Users//Library/Application Support/iPhone Simulator/4.0/Applications/

Currently I don’t have a 4.0.1 folder there.

Unfortunately I have to empty the folder every time I want to build for the simulator. This isn’t very efficient either. Do you maybe have any other tips?

[import]uid: 7443 topic_id: 1574 reply_id: 4481[/import]

Well I guess you could try to find what file causes the crash / abort and report that to Ansca. Maybe there is an access permission problem. Dunno :slight_smile: [import]uid: 6928 topic_id: 1574 reply_id: 4489[/import]

And you may Update Xcode to the version with iPhone SDK 4.0.1 :slight_smile: [import]uid: 6928 topic_id: 1574 reply_id: 4490[/import]

Same problem here. :stuck_out_tongue: [import]uid: 7022 topic_id: 1574 reply_id: 4491[/import]

Can anyone confirm updating Xcode to 4.0.1 helps? [import]uid: 7443 topic_id: 1574 reply_id: 4493[/import]

Well… try it yourself and tell us! [import]uid: 6928 topic_id: 1574 reply_id: 4495[/import]

The Xcode Simulator now requires version 3.2.3 to run. It no longer runs with 3.2.2 or older.
[import]uid: 7559 topic_id: 1574 reply_id: 4497[/import]

Hmm…

This happened for me only with versions I build first with the still defective version of Beta 7.

I had to delete those manually to be able to build and run it under the same name after Beta 7 was fixed!

Currently I can (re)build the app in place without any problems!

You may want to delete the installed application in the simulator:

/Users/[yourusername]/Library/Application Support/iPhone Simulator/4.0.1
[import]uid: 6928 topic_id: 1574 reply_id: 4480[/import]