Re: time of the build
Re: time of the build
- Subject: Re: time of the build
- From: Daniel Pasco <email@hidden>
- Date: Wed, 29 Apr 2015 07:41:50 -0700
This is pretty much the same technique I've used to embed build information in the app settings bundle.
-Daniel
> On Apr 29, 2015, at 6:04 AM, Damian Carrillo <email@hidden> wrote:
>
> I have exposed build-time information to an application in the past. The approach I chose leveraged a Run Script build phase that overwrote the contents of a plist or a header file (I’ve used both). I created the initial file and added it to git. Then, I ended up assuming that changes to the plist or header file were negligible from the perspective of source control with:
>
> git update-index --assume-unchanged
>
>> On Apr 29, 2015, at 6:39 AM, Torsten Curdt <email@hidden> wrote:
>>
>> I would like to embed the timestamp of the build into my executable.
>>
>> I know there is __DATE__ and __TIME__ but converting those into a timestamp
>> at runtime isn't ideal.
>>
>> So I guess I somehow need to make the output of date +%s available to the
>> preprocessor. But user defines allow only static values aren't they?
>>
>> I am not aware that a run script phase can export anything but files.
>>
>> How would you do this?
>>
>> Hope this is not too OT as this is more Xcode/build tools related.
>> Happy to ask elsewhere if it is.
>>
>> cheers,
>> Torsten
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden