| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Oct 28, 2006, at 3:56 PM, Robin Mair wrote:
If you haven't, that would explain both circumstances. In the first, if you rebuild the framework, you need to recompile the app against its changed headers and relink it against the changed library. If you rebuild the framework with different data members in a class, the app will indeed crash. And rebuilding the library does not itself force a rebuild of its clients—though when you rebuild the app it should be smart enough to only rebuild those parts that are actually affected by the framework change. For the second scenario, how did you add the libraries to the project (and do you name the debug and release libraries differently?) Xcode works best in such circumstances when your projects are set up like this: - related projects share the same build products directory - related projects have a common set of configuration names - you let Xcode generate build products in the per-configuration directories - you don't alter the name of your build product per-configuration So if you build the Debug configuration of your app, it notices it needs the Debug configuration of a library, loads and builds that project, its output goes into "foo.a" or whatever in the Build Products/Debug directory, and when your app builds, it links with Build Products/Debug/Foo.a. If you have brought over separate Foo.a and Foo Debug.a libraries, it takes more work to get Xcode to look for the right link library in the right configuration. If you just drag and drop, say, Foo.debug, then Xcode will look for that library in both configurations. You can set it up to work manually, but it's a lot more work. And for the save-all question, save-all-and-build only saves files in the current project, not dependent projects. Yes, this could work better. But in general, if you have a dependency chain of projects, build them all from the bottom project to the top and the Save Alls will do the right thing. One way to streamline this is to use multiple targets in the same project: have one project build both the framework or static library in one target, then the app itself in another. All the depdencency checking, Save All, and intermediates will all be coherent, and things will act as you expect. Chris |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden This email sent to email@hidden
| References: | |
| >Xcode Problems? (From: Robin Mair <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.