How to fix "multiple build commands for output file" warning
-
Hi. I recently started getting the following warning:
"Checking DependenciesWarning: Multiple build commands for output
file /Users/mason/BUILD/Release/iGet.app/Contents/Resources/
ErrorCodeFormatStrings.plist"
This a somewhat complex Xcode project which includes ten other Xcode
projects and builds targets from them (frameworks, helper tools,
Automator plugins and such). The project also has six targets of its
own that it builds.
Anyway, so maybe the dependency checking is hard/unusual in this
case, but I cannot find anything special about the file that is flagged.
I'd like to fix it, since it's the only warning and we supposedly
have a "no-warnings" policy. On the hand, if it's a bug I could just
wait for a fix... but I couldn't really figure out what it's trying
to tell me.
I'm using the latest and greatest Xcode 2.2 preview (655.0/658.0/651.0).
Thanks for any info or workarounds,
--
Mason Mark
Five Speed Software, Inc. -
On 10 nov 2005, at 07.13, Mason Mark wrote:
> I'd like to fix it, since it's the only warning and we supposedly
> have a "no-warnings" policy. On the hand, if it's a bug I could
> just wait for a fix... but I couldn't really figure out what it's
> trying to tell me.
Remove this file from your project. Restart Xcode.
Add the file back to the project. Restart Xcode
Build.
Problem solved?
j o a r -
On Nov 10, 2005, at 4:07 PM, j o a r wrote:
>
> On 10 nov 2005, at 07.13, Mason Mark wrote:
>
>> I'd like to fix it, since it's the only warning and we supposedly
>> have a "no-warnings" policy. On the hand, if it's a bug I could
>> just wait for a fix... but I couldn't really figure out what it's
>> trying to tell me.
>
> Remove this file from your project. Restart Xcode.
> Add the file back to the project. Restart Xcode
> Build.
>
> Problem solved?
Yeah, thanks!
Actually after deleting it and restarting Xcode, I noticed a
reference to the file was still listed somewhere else in the project--
it had somehow gotten two references to the same file. So I deleted
that one too, then re-added it.
Anyway, your suggestion did the trick.
Cheers,
--
Mason Mark
Five Speed Software, Inc. -
On Nov 9, 2005, at 11:31 PM, Mason Mark wrote:
> Actually after deleting it and restarting Xcode, I noticed a reference
> to the file was still listed somewhere else in the project--it had
> somehow gotten two references to the same file. So I deleted that one
> too, then re-added it.
Restarting Xcode is unnecessary; you don't even need to close and
reopen the project.
Xcode warns you if you have two sources that end up creating the same
built product file, whether in Rez, copy resources, or compilation.
Chris


