Full rebuild on iOS every time?!?

Hi, I'm using Xcode 7.0 from the app store. Every time I run my app in the 9.0 simulator, it does a full rebuid of the project. It then appears to delete the existing app from the simulator and install a clean copy. Any idea how to stop that? I can't test my app when it blows away my databases with each run.


Thanks, Patrick

Replies

7.0 or 7.0.1?

7.0 (build 7a1001 -- app store version).


It's actually not deleting the app from the simulator, but the full build is causing a file in the app bundle to have a newer timestamp than what is in the Documents directory which is triggering code that shouldn't run.


So, the issue is just why is there always a full build.


Thanks, Patrick

7A1001 is 7.0.1, so it sounds like you're MAS level.


In the mean time, do a manual delete of the app on the sim, coupled with an option-clean via Xcode to force it to purge cached assets, etc. Don't assume a regular build will 100% flush the build on the sim, I think.