Re: Copying old instead of new Bundle Resources
Re: Copying old instead of new Bundle Resources
- Subject: Re: Copying old instead of new Bundle Resources
- From: Bill Garrison <email@hidden>
- Date: Fri, 4 Feb 2011 13:37:52 -0500
Jerry,
I have a bash script that I run whenever I think Xcode needs a mind wipe.
#!/bin/bash
for path in "~/Library/Caches/Xcode*" "/Library/Caches/com.apple.Xcode.`id -u`" "/tmp/$USER"; do
echo "Cleaning $path..."
rm -rf $path
done
/tmp/$USER is idiosyncratic because I configured Xcode to use it as the build directory.
Bill
On Feb 3, 2011, at 11:04 PM, Jerry Krinock wrote:
> My most violent confrontations with Xcode have always involved getting current versions of resources copied into products. Possibly someone could explain what happened today that would help me better understand how to make it work.
>
> My app ships with an Internet Plug-In in Contents/Resources. Today, I discovered that, as usual, Xcode 3.2.5 copied the old version of this plug-in when building my product. To investigate, I did a search by name with Path Finder and found all versions of this plug-in. I deleted (not trashed) the old version of the plug-in in the product, all old versions in the Trash, and another old version which Xcode should not have been copying. So now there were only two versions of this plug-in on my hard drive, Debug and Release, and they were both the new version.
>
> So then I did a build. But, like a magician pulling a rabbit out of a hat, Xcode somehow conjured up the old version into my product again.
>
> Then I did a Clean, and another Build. Now, this time, it got the new version of my plug-in.
>
> How does Xcode do this magic? Does it cache a product's bundle resources under a different name somewhere?
>
> Thank you,
>
> Jerry Krinock
_______________________________________________
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