Re: Moving an Info.plist file
Re: Moving an Info.plist file
- Subject: Re: Moving an Info.plist file
- From: Rick Altherr <email@hidden>
- Date: Fri, 7 Mar 2008 22:33:16 -0800
On Mar 7, 2008, at 10:24 PM, Rick Mann wrote:
I created an Xcode 3 project from a template. Then I promptly moved
the generated sources and Info.plist out of the project directory
and up to a sibling. I removed and replaced the source files, and
the Info.plist, but it kept complaining that a) it can't find
Info.plist, and b) that multiple build rules exist.
I tried removing the INFOPLIST_FILE build setting which was
overridden in the target. Its value was "Info.plist" (the
description says project-relative, so I assume that means "next-to"
the project). Removing the setting resolved the complaints, but it
wouldn't build correctly. I tried changing the setting to "../rsrc/
Info.plist" (the location of my plist file relative to the project),
but I still got the multiple build rules complaint. I removed the
file from the project (leaving the build setting intact), and it
works.
So, what did I do wrong, and what's the right way to move an
Info.plist (or, if one is building a project from scratch, add one)?
TIA,
--
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com
This email sent to email@hidden
Every time I've played with this, my experience has been that the
Info.plist is automatically copied into the target bundle. Having it
as part of a Copy Resources phase seems to only cause a duplicate copy
to get placed in the bundle's resources directory. I've never
experienced the multiple build rules problem, but I bet that when you
re-added the Info.plist to your project, it got added to the target as
part of a Copy Resources phase. When you removed it from the project,
that would also have been removed.
The correct method, although I don't work on Xcode so I'm bound to be
wrong in some regard, is to not explicitly include the Info.plist as
part of any phase for the target, but to specify it with the
INFOPLIST_FILE settings which is project-relative.
--
Rick Altherr
Architecture and Performance Group
email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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