• 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: Custom Build Rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Build Rule


  • Subject: Re: Custom Build Rule
  • From: Matthew Mashyna <email@hidden>
  • Date: Tue, 14 Jul 2009 16:55:27 -0400

On Jul 14, 2009, at 4:11 PM, Chris Espinosa wrote:


On Jul 14, 2009, at 11:09 AM, Matthew Mashyna wrote:

I'm trying to help an old friend get a project that was written years ago for Codewarrior. I know, I know she should just rewrite it all but that's just not going to work for her. So, thanks in advance for those comments.

I'm trying to add a new build rule for handling files that end in .rsrc but I can't seem to get the project to use my rule. For a test I made a rule for

"Source files with names matching:" *.rsrc
	using: "Custom script:
		echo "yippee"


But I never see my yippee in the log.

I have a file called External.rsrc in my project. Do I need to change the file type? I can't figure it out. What am I missing?

Normally External.rsrc will be in the Copy ResourceManager Resources build phase, so it will not get processed in the Compile Sources build phase and therefore your custom rule will not apply. Move the External.rsrc file from Copy ResourceManager Resources to Compile Sources.


Chris


OK. I tried that and still no yippee. In the info panel I changed the File Type to a few different things including sourcecode, text, archive.rsrc. None of that helped.


As another test I changed the filename to External.foo and changed my build rule to do files that match *.foo. Same results. My build rule still doesn't get called. It seems like Xcode is not associating .foo files with that rule. Is that what the box in the rule panel should contain: *.foo ?

Any other ideas? Are there any sample projects that have custom build rules for offbeat file types?

Matt
_______________________________________________
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: 
 >Custom Build Rule (From: Matthew Mashyna <email@hidden>)
 >Re: Custom Build Rule (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: FPC-Cocoa project Release doesn't work, though Debug does
  • Next by Date: #if on SDK_NAME
  • Previous by thread: Re: Custom Build Rule
  • Next by thread: FPC-Cocoa project Release doesn't work, though Debug does
  • Index(es):
    • Date
    • Thread