Re: Run script output files not being compiled
Re: Run script output files not being compiled
- Subject: Re: Run script output files not being compiled
- From: Rick Mann <email@hidden>
- Date: Mon, 02 Jun 2014 20:06:08 -0700
On Jun 2, 2014, at 20:01 , Mills, Steve <email@hidden> wrote:
> On Jun 2, 2014, at 21:29:10, Rick Mann <email@hidden> wrote:
>
>> I've got a run script build phase that generates some .cc files, and they're listed in its output files, but they're not getting picked up and compiled.
>>
>> How can I fix this?
>
> So, you want them to be compiled by the same Build command that generated them? If your build phase script generates them and they didn't exist before, then they won't be in the Compile build phase. I would guess that you'd need to have some empty source files already added to the project AND in the Compile build phase, then the script would simply add the source code data to those existing files.
The run script build phase runs before the compile phase, so they're available.
As mentioned in my follow-on post, Xcode is also ignoring the input files, and always running the script, even when those haven't changed.
_______________________________________________
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