Re: In iOS/MacOS XCode project, MacOS static library product appears "red" in Navigator, and shows no path in Assistant.
Re: In iOS/MacOS XCode project, MacOS static library product appears "red" in Navigator, and shows no path in Assistant.
- Subject: Re: In iOS/MacOS XCode project, MacOS static library product appears "red" in Navigator, and shows no path in Assistant.
- From: Jens Alfke <email@hidden>
- Date: Mon, 18 Jul 2011 12:18:27 -0700
On Jul 18, 2011, at 6:22 AM, Michael Hanna wrote:
> In Xcode 4, I have a subproject building a static lib for both iOS and MacOS. It's originally an iOS project. Both the iOS static lib.a and the MacOS build libMac.a build product appear in the DerivedData/proj-xxxxx/Build/Products as expected. BUT in the Navigator, the libMac.a file appears "red" as if the project is missing the lib product somehow.
I see this quite a lot in this same situation[1], where one project in a workspace links against a library built by another project.
> Also, when I click on the iOS lib.a file in the Navigator, I see the path in the Assistant but when I click on the "red" libMac.a file in the Navigator, there is no path listed(even though the file exists). Seems XCode 4 has lost the mac build.
I’ve been able to fix this by using the Identity/Type area in the Utilities panel. Clicking the tiny icon below the Location pop-up (looks like a little window or something?) brings up a file-open panel from which I can select the file. First change the Location pop-up to “Relative to build products”, though.
I have to say that this has been one of the most frustrating parts of working with Xcode 4 so far. It seems as though inter-project library dependencies have a lot of weird bugs, even in the latest available Xcode builds.
—Jens
[1] https://github.com/couchbaselabs/iOS-Couchbase is the project I’m working on _______________________________________________
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