Xcode 4 hangs during build and large project advice
Xcode 4 hangs during build and large project advice
- Subject: Xcode 4 hangs during build and large project advice
- From: Daniel Vollmer <email@hidden>
- Date: Wed, 16 Mar 2011 09:21:39 +0100
Hi,
after diving in head-first and trying out Xcode 4 with a large CFD software, I've encountered the problem that during the build of the final target, Xcode just hangs. It's not unresponsive (i.e. I can stop the build), but it never finishes the build either. The libraries and executables are all BSD static libraries or command-line applications written in C.
My project layout (advice appreciated) is currently as follows:
Workspace
Empty top-level project
libs-project (contains targets for 29 static libs needed by the main program, these also contain dependencies amongst themselves, but they're not declared here as it only matters in the final executable link stage)
main-project (contains a further 4 libs, 1 of which contains ~250 source files as well as the main executable target)
The main executable obviously links to most, if not all, of the libraries created in the other project. Seemingly during one of these dependent library builds, the hang occurs. If I set my current target directly to that library, it seems to compile and create the archive (.a) fine.
Secondly, we have variants of most of the libraries that are triggered by defines. One is the so-called DEVELOPMENT flag which enables options that are not yet ready for the release, and we have a second set (EULER_LAMINAR, TURBULENT_1EQU, TURBULENT_2EQU, ...) for building variants optimized for different turbulence models. Obviously the 2 sets of flags are orthogonal.
I'm not quite sure how to best reflect this in the project. I've found BUILD_VARIANTS but no idea how to use them, maybe Schemes could also be used for this purpose, but I wasn't quite sure how.
Right now I've simply created multiple targets for the affected libraries and executables with the defines set differently while the DEVELOPMENT define is set in the Debug configuration and not in Release (this is not ideal though, sometimes we want release builds with the flag). Also, is there a way to merge preprocessor defines (i.e. for the target add a define to the list of defines already set project-wide instead of them overwriting each other)?
Any advice would be welcome.
Thanks,
Daniel. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden