• 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: Copy data file in 4.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy data file in 4.5


  • Subject: Re: Copy data file in 4.5
  • From: Fritz Anderson <email@hidden>
  • Date: Thu, 20 Sep 2012 10:00:03 -0500

On 20 Sep 2012, at 4:33 AM, Gerriet M. Denkmann <email@hidden> wrote:

> Starting with Xcode 4.5 I have a problem.
>
> My app uses a data file which for some reason starts with the magic words: "bplist00" - but it is not a property file in binary format.
>
> Xcode knowns that it is:
> File Type Default - data
>
> But when it tries to copy it, 4.5 now becomes nosy, looks into the data (which it has no business to do) and refuses to copy it with the remark "Reading plist: The data couldn't be copied because it is corrupted".
>
> To reiterate: the file is not called something.plist, it is not a plist, is not declared to be a plist, it is just plain data which should be opaque to Xcode.
>
> What can I do to convince Xcode NOT to treat it as a plist and just copy the file?

The next thing I'd try would be to go to the Build Rules tab of the Target editor and click the Copy to Target option in the entry for file.bplist. Change the action to PBXcp.

If it works, your target won't be able to handle actual binary plists. However, copying may good enough for most purposes. You'd have to be sure your Info.plist precursor stayed text.plist, because that has to go through the plist preprocessor.

I don't have a test case set up, but the experiment shouldn't be much trouble for you.

	— F


--
Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement in process -- <http://x4u.manoverboard.org/>


 _______________________________________________
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: 
 >Copy data file in 4.5 (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Debug-iphoneos
  • Next by Date: Re: ACTION build setting
  • Previous by thread: Copy data file in 4.5
  • Next by thread: Re: Copy data file in 4.5
  • Index(es):
    • Date
    • Thread