• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting .plist during the build process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting .plist during the build process


  • Subject: Re: Converting .plist during the build process
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 14 May 2009 11:45:31 -0700

On May 14, 2009, at 10:53 AM, Mark Thomas wrote:

 I was wondering if anybody knew of a way I can convert a textual version
of a .plist to the binary XML version

Binary ≠ XML, quite emphatically. Which do you want?

during the Xcode build process. As I
want to keep my plist in text format during development (coz of SVN/CVS,
comparing over different versions) ..etc, but when I build my application I
want to take advantage of a binary xml format (as being smaller).

 I see there is command line 'defaults' but I don't see how I could read
and write the .plist during the build process.

DON'T DO THAT.

No, really, don't.

Instead, search for "plist format" in the Xcode documentation.  In the Release Notes for Xcode 3.1.2 you'll find the advanced build settings  

  • INFOPLIST_OUTPUT_FORMAT

  • PLIST_FILE_OUTPUT_FORMAT

  • STRINGS_FILE_OUTPUT_ENCODING

What you want to do is set PLIST_FILE_OUTPUT_FORMAT to binary, and all plists copied in that target will be converted to binary.  OK?

Chris


 _______________________________________________
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

References: 
 >Converting .plist during the build process (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Using Objective-C object in C++ source
  • Next by Date: Re: iPhone Platform Compiler Symbol?
  • Previous by thread: Converting .plist during the build process
  • Next by thread: Re: Converting .plist during the build process
  • Index(es):
    • Date
    • Thread