Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / August 2005



Tip: Looking for answers? Try searching our database.

XCode and location of info.plist file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
none - 11 Aug 2005 22:39 GMT
I'm using XCode 2.1 and I want to have the project's info.plist file be
in  a subfolder of the project (the subfolder is called Resources).  So,
in other words, I have:

/Volumes/MacHD/MyProject/MyProject.xcodeproj
/Volumes/MacHD/MyProject/Resources/info.plist

And I did the following:
* Removed info.plist from the project
* Went to the finder and moved info.plist into /Resources/
* Went back into XCode and added info.plist back in
* Did a "Get Info" on the project target and set the tab pane to Build,
then set the Info.plist file setting to /Resources

However, when I build, I get the following error:

Info.plist file at /Volumes/MacHD/MyProject/Info.plist missing; build
setting may be incorrect.

For the Info.plist file setting, I've tried:
/Resources
/Resources/
/Resources/info.plist

Yet nothing works.  Any suggestions on what setting the project should
use to dictate where/what info.plist file to use?
Chris Hanson - 12 Aug 2005 18:30 GMT
> And I did the following:
> * Removed info.plist from the project
> * Went to the finder and moved info.plist into /Resources/
> * Went back into XCode and added info.plist back in
> * Did a "Get Info" on the project target and set the tab pane to Build,
> then set the Info.plist file setting to /Resources

The "Info.plist file" property should be set to the path of the file,
not the path to the file.  Also, POSIX path names that begin with "/"
are relative to the root directory, the root directory of the boot
volume.  So you want to set the "Info.plist file" property to
"Resources/Info.plist".

 -- Chris
Simon Slavin - 14 Aug 2005 00:24 GMT
On 11/08/2005, none wrote in message <none-
8DCCAD.14395411082005@cnews.newsguy.com>:

> I'm using XCode 2.1 and I want to have the project's info.plist file be
> in  a subfolder of the project

Don't do this.  The location of that file is as important as its name.
It's part of the standard for Cocoa programs and lots of things assume
that it will be in that place.

If you have a reason for wanting it moved that's worth discussing
we might be able to help.

Simon.
Signature

Using pre-release version of newsreader.
Please tell me if it does weird things.

Chris Hanson - 14 Aug 2005 00:53 GMT
> On 11/08/2005, none wrote in message <none-
> 8DCCAD.14395411082005@cnews.newsguy.com>:
[quoted text clipped - 7 lines]
> If you have a reason for wanting it moved that's worth discussing
> we might be able to help.

It's perfectly fine to move and rename an Info.plist file *in your
project*.  It needs to be in a specific place with a specific name *in
your product* and Xcode will take care of putting it there.  You just
need to make sure -- via the "Info.plist file" property -- that Xcode
knows where to find it and what it's called.

So go ahead and put your app's Info.plist in Resources/MyApp-Info.plist
within your Xcode project.  Just be sure to set the "Info.plist file"
property for all of the configurations in your MyApp target to
"Resources/MyApp-Info.plist".

The original poster's issue was only that he was specifying the
property with a leading slash.

 -- Chris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.