I've been u开发者_运维问答sing Xcode 4 for the last two weeks now, and I'm a little frustrated having to do a clean (shft+cmd+K) every time I change a single line of code before building (cmd+B) and running (cmd+R) again.
In previous versions of Xcode, rebuilding was enough for the simulator to use the latest build.
Am I doing it wrong? A lot of things have really improved but I can't get the hang of this "build and run flow".
Are your library files appearing in red (missing)?
Build the project once for your iOS device, then add the .a to the Link Binary With Libraries again. Now the .a will appear as normal (not red - missing).
Now every time you build/run the project in the simulator, the libraries/subprojects will be build too.
I've had the same problem.
精彩评论